write a c program to convert fahrenheit to celsius?
Answers were Sorted based on User's Feedback
Answer / azad sable,chiplun.
void main()
{
float fr,cent;
clrscr();
printf("enter the tempreture in F");
scanf("%f",&fr);
cent=5.0/9.0*(fr-32);
printf("\nTempreture in centigrade=%f",cent);
}
getch();
}
Is This Answer Correct ? | 24 Yes | 3 No |
Answer / faizan
/*Logic== C=(f-32)/1.8 ==*/
#include<stdio.h>
#include<conio.h>
#define f_low 0
#define f_max 250
#define step 25
void main()
{
typedef float real;
real fahrenheit,celsius;
clrscr();
fahrenheit=f_low;
printf("Fahrenheit Celsius\n\n");
while(fahrenheit<=f_max)
{
celsius=(fahrenheit-32.0)/1.8;
printf("%5.1f
%7.2f\n\n",fahrenheit,celsius);
fahrenheit=fahrenheit+step;
}
getch();
}
Is This Answer Correct ? | 26 Yes | 13 No |
Answer / bukke ramesh naik
/* c=(f-32)/1.8 */#include<stdio.h>
#include<iomap.h>
#define fahern_low 0
#define fahern_max 250
void main()
float c,f;
clrscr();
f=fahern_low;
printf("fahernheat into celsius\n");
while(f<=fahern_max)
{
c=(f-32.0)/1.8;
f=f+c;
}
getch();
}
Is This Answer Correct ? | 19 Yes | 7 No |
Answer / ramanan
#include<stdio.h>
#include<conio.h>
void main()
{
float c,t;
clrscr();
printf("\n enter the celsius value...");
scanf("%f",&c)
f=(1.8*c)+32
printf("\n to converted fahernheit is ....%2.f",f);
getch();
}
Is This Answer Correct ? | 6 Yes | 2 No |
write a program for odd numbers?
what is the c.
What is the output of printf("%d", printf("Hello"));?
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Explain function?
What are the applications of c language?
biggest of two no's with out using if condition statement
Write a function that will take in a phone number and output all possible alphabetical combinations
Write a program to generate the Fibinocci Series
18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4
what is the differnce between AF_INET and PF_INET?
5 Answers Systems Plus, Wipro,
What is variable in c with example?