I cannot seem to get the program to work correctly. I have tried to figure out whats wrong with the code but i got nothing, i am new to C programming any help will be much appreciated.
thanks a bunch!
Code:#include <stdio.h> void main() { float (temp_kelvin); float (temp_celcius); float (temp_farhenheit); printf("Enter a temperature in Celcius:"); scanf_s("2f",&temp_celcius); temp_kelvin = (temp_celcius + 273.15); temp_farhenheit = (((1.8)*temp_celcius)+32); printf("The equivalent Farhenheit temperature is: .2%f\n", temp_farhenheit); printf("The equivalent Kelvin temperature is: .2%f\n", temp_kelvin); }



LinkBack URL
About LinkBacks


