teach-ict.com logo

THE education site for computer science and ICT

Bronze Challenge


Task

Write a program which can compare two numbers using the 'greater than' comparison operator.

Code this:

  • The program should set two variables
  • The first variable should be assigned the value of 7
  • The second variable should be assigned the value of 8
  • The program should compare the first variable to the second variable
  • It should then print, 'True' if the first variable is greater than the second
  • Otherwise, it should print 'False'
  • We have helped you out by giving you the structure of the code .....................