Well a friend sent me this code and ask me if I can figure out what is wrong, but the proble is I donno C, I barely understood the instructions, its totally different to C++, well if someone knows Ill be glad.
Code:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
float tmp,c,k,f;
int grd;
printf("\n\r How grade you want?\r 1.-Celcius \n\r 2.-Farenheit \n\r 3.-Kelvin");
scanf("\n\r %i",&grd);
scanf("\n\r %f",&tmp);
if (grd==1)
{
f=(tmp*1.8)+32;
k= tmp+273;
printf("\n\r Farenheit%f Kelvin%f",&f,&k);
}
if (grd==2)
{
c= (tmp-32)/1.8;
k= c+273;
}
if (grd==3)
{
c= tmp-273;
f= (c*1.8)+32;
}
}