/* Accept initial velocity, acceleration and time. Print the Final velocity and Displacement. */ #include<stdio.h> main() { int u,a,t; float v,s; printf("Enter u, a, t - "); scanf("%d%d%d",&u,&a,&t); v=u+(a*t); printf("Velocity = %f",v); s=(u*t)+(0.5*a*t*t); printf(" Acceleration=%f",s); }
This is more like an initiative to digitize the basic codes which are required to be executed while learning computer science, computer application, information technology and computer engineering at Indian universities. As I graduated from the University of Pune, the list of codes I am going to publish are the one which I learned and executed while studying at my graduation.
Tuesday, 6 October 2020
Accept initial velocity, acceleration and time. Print the Final velocity and Displacement.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment