Function with argument and return value | C Programming C Programming Home » C Functions » Function with argument and return value /*Function with argument and with return value*/ #include #include #include int Sum(int x, int y) { return x * y; } main() { int a, b, res; printf("Function with argument and with return value\n"); printf("\n Enter the First No. :"); scanf("%d",&a); printf("\n Enter the Second No. :"); scanf("%d",&b); res = Sum(a,b); printf("\n\nReturned Value: %d", res); getch(); } Output is as: Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon