Q:

Write a program to convert temperature from centigrate to farenhiet

0

Write a program to convert temperature from centigrate to farenhiet

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Program:

#include<stdio.h>
#include<conio.h>
void main()
{
float c,f;
printf("\n Enter temperature in centigrate:");
scanf("%d",&c);
f=(c*9/5)+32;
printf("\n Temp in fah=%f",f);
getch();
}

Output:

 Enter temperature in centigrate:37   

 Temp in fah=98.599998

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program to demonstrate betwise operator le... >>
<< Write a program to print compare two numbers using...