No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
plz help me in this code . its not giving the output plz correct my code [CODE]#include <stdio.h> int main() { double fahr , celsius; printf("Enter the temperature in degrees fahrenheit:"); scanf("%d",fahr); //convert to celsius celsius = (5.0 / 9.0) * (fahr - 32.0); printf("%if temperature in celsius",celsius); return 0; … |
|
i m new in c language. i write the following code. its not giving the correct input. when i enter the marks it always give ouput "F" .please correct the code [CODE]#include <stdio.h> void main() { int marks; float percentage; printf("enter marks:"); scanf("%d",&marks); percentage=(marks/1100)*100; if (percentage>80) printf(" A+ "); if(percentage … |