repl.it
@SushaanPatel/

Comparisons Calculator

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
op = input(">=a\n<=b\n=-c\n\nIf the Comparison is correct program will show true \nand if false it will show false, Enter answer here\n")

if op == "a":
  gn = float(input("Enter Greater Number\n"))
  sn = float(input("Enter Smaller Number\n"))
  i = gn > sn
  print (i)

if op == "b":
  gn = float(input("Enter Greater Number\n")) 
  sn = float(input("Enter Smaller Number\n"))
  i = sn < gn
  print (i)

if op == "c":
  gn = float(input("Enter Greater Number\n"))
  sn = float(input("Enter Smaller Number\n"))
  i=gn == sn
  print (i)  
Fetching token
?