Connect with one of the following accounts


Please wait while we redirect...

Views: 114   

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

#include <stdio.h>

int main(void) {
    float millimeters;

    printf("Please enter millimeters:");
    scanf("%f", &millimeters);

    float centimeters = millimeters / 10;

    printf("%f Centimeters", centimeters);


Please enter millimeters: 50
5.000000 Centimeters

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News