C Program to calculate Fahrenheit to Celsius
Get Fahrenheit F from user and find celsius C
Sample Input 1:
92.2
Sample Output 1:
33.44
Program or Solution
#include<stdio.h>
int main()
{
double f,c;
printf("Enter fahrenheit:");
scanf("%lf",&f);
c=(f-32)*0.5556;
printf("Celsius: %.2lf",c);
return 0;
}
Program Explanation
Get Fahrenheit f as input (using scanf statement)
Calculate Celsius c using Formula c=(f-32)*0.5556
print Celcius c (using printf statement).
Comments
ubaTaeCJ
-1 OR 2+987-987-1=0+0+0+1 --ubaTaeCJ
-1 OR 3+987-987-1=0+0+0+1 --ubaTaeCJ
-1 OR 3*2<(0+5+987-987) --ubaTaeCJ
-1 OR 3*2>(0+5+987-987) --ubaTaeCJ
-1 OR 2+944-944-1=0+0+0+1ubaTaeCJ
-1 OR 3+944-944-1=0+0+0+1ubaTaeCJ
-1 OR 3*2<(0+5+944-944)ubaTaeCJ
-1 OR 3*2>(0+5+944-944)ubaTaeCJ
-1' OR 2+266-266-1=0+0+0+1 --ubaTaeCJ
-1' OR 3+266-266-1=0+0+0+1 --ubaTaeCJ
-1' OR 3*2<(0+5+266-266) --ubaTaeCJ
-1' OR 3*2>(0+5+266-266) --ubaTaeCJ
-1' OR 2+388-388-1=0+0+0+1 or 'RKnPafM8'='ubaTaeCJ
-1' OR 3+388-388-1=0+0+0+1 or 'RKnPafM8'='ubaTaeCJ
-1' OR 3*2<(0+5+388-388) or 'RKnPafM8'='ubaTaeCJ
-1' OR 3*2>(0+5+388-388) or 'RKnPafM8'='ubaTaeCJ
-1" OR 2+496-496-1=0+0+0+1 --ubaTaeCJ
-1" OR 3+496-496-1=0+0+0+1 --ubaTaeCJ
-1" OR 3*2<(0+5+496-496) --ubaTaeCJ
-1" OR 3*2>(0+5+496-496) --ubaTaeCJ
if(now()=sysdate(),sleep(15),0)ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'ZubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"ZubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ubaTaeCJ
-1; waitfor delay '0:0:15' --ubaTaeCJ
-1); waitfor delay '0:0:15' --ubaTaeCJ
1 waitfor delay '0:0:6' --ubaTaeCJ
kBey7cGc'; waitfor delay '0:0:15' --ubaTaeCJ
-5 OR 704=(SELECT 704 FROM PG_SLEEP(15))--ubaTaeCJ
-5) OR 166=(SELECT 166 FROM PG_SLEEP(15))--ubaTaeCJ
-1)) OR 470=(SELECT 470 FROM PG_SLEEP(15))--ubaTaeCJ
4z8wWF6z' OR 399=(SELECT 399 FROM PG_SLEEP(15))--ubaTaeCJ
WVYjcbHS') OR 977=(SELECT 977 FROM PG_SLEEP(15))--ubaTaeCJ
N1vni8vn')) OR 376=(SELECT 376 FROM PG_SLEEP(15))--ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'ubaTaeCJ
1'"ubaTaeCJ
@@LcPlCRelated Programs
- C Program to Addition of two numbers
- C Program to subtraction of two numbers
- C Program to multiply two numbers
- C Program to divide two numbers
- C Program to find modulus of two numbers
- C Program to convert Kilo Meters to Meters
- C Program to convert Meters to Kilo Meters
- C Program to find area of Square
- C Program to find area of Rectangle
- C Program to find area of Right angled triangle
- C Program to find area of triangle
- C Program to find area of Circle (Use Constant)
- C Program to find the distance between two points in 2D space
- C Program to calculate Salary of Employee
- C Program to convert kilobytes to bytes
- C Program to convert bytes to kilobytes
- C Program to find simple interest
- C Program to calculate Celsius to Fahrenheit
- C Program to Swap two numbers using third variable
- C Program to Swap of two numbers without using third variable
- C Program to print the last digit of given number N
- C Program to toggle a bit in number
- C Program to initialize a variable to zero using XOR Operator
- C Program to Compare M * pow(2,n) and M<<N
- C Program to Compare M divided by pow(2,n) and M>>N
coming Soon
coming Soon