Programm to evaluate expression
Programm to evaluate expression:- #include<stdio.h> #include<conio.h> void main() { int a,b,c; float k; clrscr(); printf("enter the value of a = "); scanf("%d",&a); printf("enter the value of b = "); scanf("%d",&b); printf("enter the value of c = "); scanf("%d",&c); k=((a*b)+c)*((2.5*a)+b); printf("value of k is = %f ",k); getch(); } Output:-

Comments
Post a Comment