#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();
}
No comments