Math, asked by yoqubbekbye, 2 months ago

Create a program to calculate the speed in m / s, given the time in minutes and the distance in kilometers.

Answers

Answered by Sirat4
0

Answer:

#include<stdio.h>

int main(){

int dis, time, speed;

printf("Enter the distance travelled in Km\n");

scanf("%d",&dis);

dis = dis *1000;

printf("Enter the time in minutes\n");

scanf("%d",&time);

time = time * 60;

speed = dis/time ;

printf("Speed = %d", &speed);

return 0;

}

Any error then comment on answer. I will help you to solve error.

Have a nice day!!

Similar questions