Select Menu

Slider

Transportation

Civil Engineering

Cement Testing

Inventor

Manual Survey Practical

Quantity Surveying

Videos

» » Fahrenheit to Celsius- vise versa (C-Programming)
«
Next
Newer Post
»
Previous
Older Post


#include<stdio.h>
#include<conio.h>
void main()
{
int ch;
float f,c,fa,ce;
clrscr();
G:
printf("\nenter 1 for fare and 2 for cen");
scanf("%d",&ch);
switch(ch)
{
case 1:
printf("\nenter the cent");
scanf("%f",&c);
fa=(1.8*(c+32));
printf("%f",fa);
break;
case 2:
printf("\nenter the fa");
scanf("%f",&f);
ce=((f-32)/1.8);
printf("%f",ce);
break;
}
printf("\nenter 1 for continue");
scanf("%d",&ch);
if(ch==1)
goto G;
getch();
}


«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply

Post Your Comments