A program Convert it into c program "a+b^2 c=a+(b*b)*c"
1 2 3 4 5 6 7 8 9 10 | #include<stdio.h> int main() { int a,b,c,s; a=2; b=6; c=8; s=a+b*b*c; printf("a+(b*b)*c=%d",s); } |
2:A program Convert it into c program "a+b^2 c=a+(b*b)*c" input through user
1 2 3 4 5 6 7 8 9 | #include<stdio.h> int main() { int a,b,c,s; printf("Enter values of a,b,c\n"); scanf("%d%d%d",&a,&b,&c); s=a+b*b*c; printf("a+(b*b)*c=%d",s); } |
Post a Comment