@VishalChoudhary/

haskellasiignment

Haskell

No description

fork
loading
Files
  • main.hs
main.hs
1
2
3
4
5
6
7
8
9
10
11
12
main = do

let celprev = -40
let farafter = (9/5)*celprev+32
print (farafter)

--since -40 is common value for celcius and farenhiet

let farprev = -40
let celafter = (farprev-32)*(5/9) 
print (celafter)
GHCi, version 8.6.5