Connect with one of the following accounts


Please wait while we redirect...

Views: 185   

Following program shows you how to convert centimeters to millimeters .
In this program we get centimeters from user once we get those we need to multiply with 10 so that we get in millimeters

#include <iostream>
#include <math.h>

int main() {
    float centimeters;
    std::cout << "Please enter centimeters:";
    std::cin >> centimeters;
    int millimeters = centimeters * 10;
    std::cout << millimeters << " Millimeters";


Please enter centimeters: 5
50 Millimeters

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News