verify the formula

/* verify the formula i=(c+d)*(g+h) */

#include
#include
void main()

{
int i,c,d,g,h;
clrscr();
printf("i=(c+d)*(g+h)");
printf("\nenter value of c:");
scanf("%d",&c);
printf("enter value of d:");
scanf("%d",&d);
printf("enter value of g:");
scanf("%d",&g);
printf("enter value of h:");
scanf("%d",&h);
i=(c+d)*(g+h);
printf("ans:%d",i);
getch();
}

0 comments:

Post a Comment