Saturday, January 10, 2015

EVALUATION OF AN EQUATION

#include<stdio.h>

main()
{

int v,g,c,d,dr; float r,nr;

printf("Enter the value of v\n"); scanf("%d",&v);

printf("Enter the value of g\n"); scanf("%d",&g);

printf("Enter the value of c\n"); scanf("%d",&c);

printf("Enter the value of d\n"); scanf("%d",&d); nr=(2*v)+(6.22*c*d);

dr=g+v;

r=nr/dr;

printf("The Evaluated Result is %f\n",r);

}



 OUTPUT:

Enter the value of v 2

Enter the value of g 4

Enter the value of c 6

Enter the value of d 8

The Evaluated Result is 50.426666

No comments:

Post a Comment