C Programming, C++ PROGRAMMING

SPEED MEASURNG PROGRAMMING IN C

BASIC PROGRAMMING

HOW CAR MEASURES THE SPEED

#include<stdio.h>
#include<conio.h>
void main()
{
int dis,time;
float sp;
clrscr();
printf(“nENTER THE DISTANCE YOU TRAVELLED AND TIME:”);
scanf(“%d%df”,&dis,&time);
sp=dis/(time*60)18/4;
printf(“n YOUR SPEED OF CAR IS=%f”,sp);
getch();
}