Write C programs for the following

Write C programs for the following