C.Program to print sum using Function (prototype,calling,defination)
#include<stdio.h>
yash(); //Function prototype
int main()
{
printf("Here We will print sum of integers\n");
yash(); //function calling
printf("This is the sum\n");
return 0;
}
yash() //function defination
{
int a=5,b=10,sum=0;
sum=a+b;
printf("Value of A is :%d & Value of B is:%d\n",a,b);
printf("Addition of A and B is: %d\n",sum);
}
Comments
Post a Comment