Advertisement
saira12tabassum19

Untitled

Jul 9th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. //problem no 2
  2. #include<stdio.h>
  3. int main()
  4. { int u,t,a;
  5. double s;
  6. scanf("%d %d %d",&u,&t,&a);
  7. s=(u*t+(.5*a*(t*t)));
  8. printf("%.2lf\n",s);
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement