Question: PLESAE WRITE THE 2 PROGRAMS SEPERATLY IN C CODE. 1. Write a function that takes three arguments: a character and two integers. The character is
PLESAE WRITE THE 2 PROGRAMS SEPERATLY IN C CODE.
1. Write a function that takes three arguments: a character and two integers. The character is to be printed. The first integer specifies the number of times that the character is to be printed on a line, and the second integer specifies the number of lines that are to be printed. Write a program that makes use of this function.
2. Write and test a function that takes the addresses of three double variables as arguments and that moves the value of the smallest variable into the first variable, the middle value to the second variable, and the largest value into the third variable. Write a program that reads in 3 double values, and then prints the values in sorted order using the function you just created.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
