-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKM_to_All.c
98 lines (45 loc) · 1.15 KB
/
KM_to_All.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include <stdio.h>
#include <conio.h>
int main()
{
float km;
printf("Enter the Distence in KM :");
scanf("%f",&km);
double nanom =1000000000000.0*km;
double microm=1000000000.0*km;
double mim=1000000.0*km;
float cm =100000.0*km;
float dm =10000.0*km;
float m =1000.0*km;
float decam =100.0*km;
float inch =39370.079*km;
float foot =3280.84*km;
float yard =1093.61*km;
float miles =0.62/km;
float nmile =0.54/km;
printf("\n\nNanometer :%f",nanom);
getch();
printf("\n\nMicrometer :%f",microm);
getch();
printf("\n\nMillimeter :%f",mim);
getch();
printf("\n\nCentimeter :%f",cm);
getch();
printf("\n\nDecimeter :%f",dm);
getch();
printf("\n\nMeter :%f",m);
getch();
printf("\n\nDecameter :%f",decam);
getch();
printf("\n\nInch :%f",inch);
getch();
printf("\n\nFoot :%f",foot);
getch();
printf("\n\nYard :%f",yard);
getch();
printf("\n\nMile :%f",miles);
getch();
printf("\n\nNautical Mile :%f",nmile);
getch ();
return 0;
}