Aim: To write a program to solve the folowing expression.
1. x² + 2x³ * (2*x)
2. x + y² + z³
note: * = multiply
I've tried to solve the problem . i'am jsut the c language begineer. pzl help me to rectigy the error.
my program is as follows:
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
The errors are:
Plz help me ...will he very thankful..
EDIT: if u can't understand my program. Plz write your own program.
............................................................................................
1. x² + 2x³ * (2*x)
2. x + y² + z³
note: * = multiply
I've tried to solve the problem . i'am jsut the c language begineer. pzl help me to rectigy the error.
my program is as follows:
-------------------------------------------------------------------------------------------------
Code:
#include<stdio.h>
#include<conio.h>
void main ()
{
double x,y,z,a,b,c,p,q,r;
x=1;
y=2;
z=3;
printf ("%lf raised to %lf\n",a,pow(x,2);
printf ("%lf raised to %lf\n",b,pow{2(x,3)};
printf ("c=%lf",2*x);
printf ("solution1=%lf", a+b+c);
printf ("%lf raised to %lf\n",q, pow(y,2);
printf ("%lf raised to %lf\n",r, pow(z,3);
printf ("solution2=%lf",p+q+r);
getch();
}
-------------------------------------------------------------------------------------------------
The errors are:
Plz help me ...will he very thankful..
EDIT: if u can't understand my program. Plz write your own program.