I was writing a code to convert celsius into fahrenheit putting .2f% in input but it not working:-
#include <stdio.h>
int main()
{
float celcius, fahrenheit;
printf("Enter the Temperature in Celsius \n");
scanf("%.2f", &celcius);
printf("Temperature in Fahrenheit is %.2f",celcius * 9/5+32);
return 0;
}
but after I removed the .2f% from input, it starts working. What's the problem there?