# -*- coding: utf-8 -*-
"""
Created on Thu May 30 15:17:01 2019

@author: upkt
"""

#programs without using functions

# program for conversion of temp from C to F
temp=eval(input("enter the temperature in celsius:"))
print("temp in F is:",9/5*temp+32)

#program to find the average of two numbers
temp1=eval(input("enter the first number:"))
temp2=eval(input("enter the second number:"))
print("sum of two numbers is=",(temp1+temp2)/2)

#program to find square of a number
num=eval(input("enter the number:"))
print("the square of",num,"is=",num*num)

#program for if else
ctemp=eval(input("enter the temp in c:"))
ftemp=9/5*ctemp+32
print(ftemp)
if ftemp<32:
    print("temp is below the freezing point")
if ftemp>212:
    print("temp is above boiling point")
