[Solved] conversion from milliseconds to hours in C [closed]
[ad_1] Just assuming there are two variables A & B. long long B; // B is the required milliseconds printf(“Enter the required ms: “); scanf(“%lli”, &B); double A = (double) B / 3600000; // to hours printf(“%lf\n”, A); Disclaimer: Your program has no such declaration which is written in your question. But for sake of … Read more