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);
}

    If you face any problem so contact me Thank you 

Contact :- https://www.facebook.com/Teach.Coding

Post a Comment

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by WpCoderX
Top