C Language program to convert centimeters into millimeters

Views: 150   

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 <stdio.h>

int main(void) {
    int centimeters;

    printf("Please enter centimeters:");
    scanf("%d", centimeters);

    int millimeters = centimeters * 10;

    printf("%d Millimeters", millimeters);


Please enter centimeters: 45
450 Millimeters
On By