使用公式速度=距离/时间计算时间
但时间总是 0 我的输入是距离 = 10 和速度 = 5,我的输出必须 = 2
#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);
}