Gjenero një program C për të llogaritur shpejtësinë aktuale të një objekti.
#include <stdio.h> int main() { float initial_velocity, final_velocity, time; // input the initial velocity, final_velocity and // time interval printf (("Enter initial velocity, final velocity and time interval respectively: "); scanf (("%f%f%f", &initial_velocity, &final_velocity, &time); // Computing the current speed float current_speed; current_speed = (final_velocity - initial_velocity) / time; // printing the value of current speed printf (("Current Speed = %f m/sec", current_speed); return 0; }