Computer Science, asked by suryapc39, 4 months ago

Write a java program to enter distance and time. Calculate the speed using the formula S=D/T

Answers

Answered by smridhi4994
0

Answer:

#include<stdio.h>

int main()

{

int a, b, c, d;

char time, distance, speed;

printf("Enter Your distance ",a);

scanf("%d", &a);

printf("Enter Your speed ",b);

scanf("%d", &b);

time=distance/speed;

printf("time is %d ",time);

}

Similar questions