FUNCTIONS(WITHOUT ARGUMENT WITH RETURN VALUE)
FUNCTIONS
(WITHOUT ARGUMENT WITH RETURN VALUE)
INPUT
#include <stdio.h>
int takenumber()
{
int i;
printf("Enter the number\n");
scanf("%d",&i);
return i;
}
int main()
{
int c;
c=takenumber();
printf("The entered number is %d", c);
return 0;
}
OUTPUT
Enter the number
9
The entered number is 9
Comments
Post a Comment