Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void){
- float kmph, miph, yps, mps;
- printf("Enter the speed (kmph): ");
- scanf("\n%f", &kmph);
- miph = kmph / 1.60934;
- yps = kmph * 1093.61 / 3600;
- mps = kmph * 1000 / 3600;
- printf("\nConversion Successful");
- printf("\nMiles/h: %.2f", miph);
- printf("\nYards/s: %f", yps);
- printf("\nMeters/s: %f", mps); //Conversion with multiple speed units//
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement