Q. Write a program that prints a table on two columns – table that helps converting miles into kilometers.
You can understand by Watching video :-
Answer :-
print("Miles\t | \tKilometer") for j in range (7) : print(10**j , end= "\t" ) print(" | " , end= "\t") print( 1.6093 * 10** j )
Output :-
Miles | Kilometer
1 | 1.6093
10 | 16.093
100 | 160.93
1000 | 1609.3
10000 | 16093.0
100000 | 160930.0
1000000 | 1609300.0
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )