Sign in to **Track Your Progress**

Module

Introduction to Operators Assignment

Sign in to **Track Your Progress**

By Masai School

Updated on : 2 Feb 2023

Published on : 2 Feb 2023

The provided code stub reads two integers,

Add logic to print two lines. The first line should contain the result of integer division,

No rounding or formatting is necessary.

- The result of the integer division 3 // 5 = 0.
- The result of the float division is 3 / 5 = 0.6.

Print:

`0 0.6`

The first line contains the first integer,

The second line contains the second integer,

Print the two lines as described above.

`4 3`

`1 1.33333333333`

The provided code stub reads two integers from STDIN,

- The first line contains the sum of the two numbers.
- The second line contains the difference of the two numbers (first - second).
- The third line contains the product of the two numbers.

Print the following:

`8 -2 15`

The first line contains the first integer,

The second line contains the second integer,

Print the three lines as explained above.

`3 2`

`5 1 6`

3 + 2 = 5

3 - 2 = 1

3 * 2 = 6

© 2023 by Masai School | A Nolan Edutech Pvt Ltd Venture