Q: How do you write program to convert meter to kilometer in c plus plus?

Write your answer...

Submit

Still have questions?

Continue Learning about Engineering

write a c++ program to convert binary number to decimal number by using while statement

#include <iostream> using namespace std; int main() { double meter, cent; cout<<"Enter value in meters"; cin>>meter; cent=meter*100; cout<<meter<<" meters"<<" = "<<cent<<" centimeters; system("pause"); return 0; } to convert more than one number put the whole program in a for loop

This is not a question.

How to write a program for secant method by mathematica

write a lex program to delete space from the program

Related questions

Write a program to convert a 2-digit BCD number into hexadecimal

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL

write a c++ program to convert binary number to decimal number by using while statement

It takes 1,000 meters end-to-end to reach 1 kilometer. 1 kilometer is longer than 1 meter. A distance is a larger number when you write it in meters than it is when you write it in kilometers.

#include <iostream> using namespace std; int main() { double meter, cent; cout<<"Enter value in meters"; cin>>meter; cent=meter*100; cout<<meter<<" meters"<<" = "<<cent<<" centimeters; system("pause"); return 0; } to convert more than one number put the whole program in a for loop

Since there are 100 centimeters in one meter, divide the number of meters by 100 and you'll get your answer

Well there are 1000 milimeters in a meter and there are 1000 meters in a kilometer. Lets convert the 55 kilometers into meters first. We get 55 (kilo) x 1000 (meters per kilo) = 55000 kilometers Now we can convert the meters into milimeters. 55000 (meters) x 1000 (milimeters per meter) = 55000000 milimeters We can write this using "scientific notation" as 5.5 x 10^7

This is not a question.

pongada punda vayanungala ..................

In order to write a program to convert stack into queue using c language you must be able to identify the proper program. Having a special certification in programing will be beneficial as well to make sure you recognize the proper queues for the programs.

A cubic kilometer is a volume while a kilometer is a length. You can't convert one to the other. Just remember that when you have a cubic kilometer it is volume the size of 1 km long, 1km wide and 1km high.

Write a program to convert a 2-digit BCD number into hexadecimal