#include
#define p printf
#define s scanf
int sum(int x, int y){
int z=x+y;
return z;
}
void sq(int n){
int sq=n*n;
p("Square of sum is %d", sq);
}
void main(){
int a,b,c;
p("Enter num1:");
s("%d", &a);
p("Enter num2:");
s("%d", &b);
c=sum(a,b);
p("Sum is %d\n", c);
sq(c);
}
No comments:
Post a Comment