Input two nob from user print Sum.product,division and some of square=>a^2+b^2.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include<stdio.h> int main() { int a,b; printf("Enter a value\n"); scanf("%d",&a); printf("Enter 2nd value\n"); scanf("%d",&b); printf("\n Sum of two value=%d",a+b); printf("\n Product of two value=%d",a*b); printf("\n Division of two value=%d",a/b); printf("\n Sum of Square=%d",a*a+b*b); } |
Post a Comment