verify the formula - 4

/* verify the formula t=((v+s)+(l-m)*l) */

#include
#include
void main()

{
int v,s,l,m,t;
clrscr();
printf("t=((v+s)+(l-m)*l)");
printf("\nenter value of s:");
scanf("%d",&s);
printf("enter value of v:");
scanf("%d",&v);
printf("enter value of l:");
scanf("%d",&l);
printf("enter value of m:");
scanf("%d",&m);
t=(((v+s)+(l-m)*l));
printf("ans:%d",t);
getch();
}

0 comments:

Post a Comment