expressions_1.gm 409 B

1234567891011121314151617181920212223
  1. x = 5; // Assign a value to x
  2. print( x );
  3. y = (x * 10) + 56; // Assign a value to y
  4. print( y );
  5. if (x == 10) // Comparison (equality)
  6. {
  7. print( "x is equal to 10" );
  8. }
  9. if (x != 10) // Comparison (inequality)
  10. {
  11. print( "x is not equal to 10" );
  12. }
  13. if (x < 10) // Comparison (less than)
  14. {
  15. print( "x is less than 10" );
  16. }
  17. if (x > 10) // Comparison (greater than)
  18. {
  19. print( "x is greater than 10" );
  20. }