C Programming code to convert inches to centimeters
Algorithm

  1. Accept the number in inches
  2. Calculate centimeter using the formula
  3. Display the output

Code
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float n,m;
printf("Enter the number in inches \n");
scanf("%f",&n);
m=n*2.54;
printf("\n Number in inches= %f",n);
printf(" \n Number in centimeters= %f",m);
getch();
}


Hameroha

Hameroha is the official agent for this website (hameroha.com). If you want to buy/sell cars or any other properties, you can directly contact us with phone numbers available on this profile.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *