1) AIM: C Program to Evaluate Algebraic Expression 2.5logx+cos32+|x*x-y*y|+sqrt (2*x*y)

2) ALGORITHM:

Step1: start
Step2: input x,y,v
Step3: v=2.5*log(x)+cos(32*3.14/180)+mod(x*x-y*y)+sqrt(2*x*y)
Step4: Result v
Step 5: stop

3) FLOWCHART:


4) PROGRAM:

#include<math.h>

main()
{
            float x,y,v;

            clrscr();

            printf("enter x and y values");
            scanf("%f,%f",&x,&y);

            v=2.5*log(x)+(cos(32*3.14/180))+mod(x*x-y*y)+sqrt(2*x*y);
            printf("the value of v=%f",v);
            getch();
}

5) Result:

Enter x and y values
10
20
The value of v=

0 comments