Whats wrong in this code.
Not accepting it
plz reply asap
Conversion from Fahrenheit to Celsius
@mangla.chirag
Three changes required in your code.
- Use single space to seperate your outputs rather than double spaces. Stick to the output format specified.
- Comment out the line in which you are printing max and a after the loop. It either gives a repeated output or an unncessary output .
- Instead of 0.55 as the changing factor , use 5/9 for the calculations as rounding off will seems to be giving you incorrect answers.
@mangla.chirag
Use int for your program only. As the answers are required as int only , we should use int for calculations as well or it creates a problem.
Also , while doing the calculations , multiply with 5 first , then divide by 9 i.e.
x = (min-32)*5/9; instead of x = ((min-32)/9)*5;
Also make the first two changes I suggested in my previous reply.