C programming
Writing equation in C programming language:
#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{ clrscr();
int
u,t,a,ans;
printf("enter
number to calculate distance(Enterserially>u,t,a):");
scanf("%d
%d %d",&u,&t,&a);
ans=((u*t)+(a*t*t)/2);
printf("output
is=%d",ans);
getch();
}
This a program of the equation of velocity, s=ut+

No comments:
Post a Comment
Please comment bellow. Share your knowledge