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+1
ubaTaeCJ
-1 OR 3+944-944-1=0+0+0+1
ubaTaeCJ
-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'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(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
@@LcPlC