C Language - Functions Without Arguments and With Return Value
#include <stdio.h>
#include <conio.h>
int sum (int a, int b, int c);
int number ()
{
int s;
printf ("Enter a number which you want\n");
scanf (" %d\n", &s);
return s;
}
int main()
{
int a, b, c, d;
a=34;
b=483;
c= 3434;
d = number();
printf ("You have entered %d\n", d);
// printstar (32);
// printf ("The sum is %d \n ", d);
return 0;
}
// ScreenShots:
Comments
Post a Comment