Skip to content

Latest commit

 

History

History

L301

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Commands

You can use these 3 commands only.

number_rayu(42);
enter_kottu();
sentence_rayu("Relentless commitment.");

Task

Extend the program to make the computer type as follows.

The sum of 5 and 3 is 8.
3 substracted from 5 is 2.
The product of 5 and 3 is 15.
5 divided by 3 the quotient is 1.
5 divided by 3 the remainder is 2.

To get the first line in the output, we can use commands in the following manner.

sentence_rayu("The sum of 5 and 3 is ");
number_rayu(5+3);
sentence_rayu(".");
enter_kottu();

Write the remaining code in similar fashion.
Using -, *, /, %.

+ Addition
- Substraction
* Multiplication
/ Quotient
% Remainder

Submit your code

Once you got the expected output. Submit your code.
When you submit it will prompt you to view test cases.

Click Run tests button.
Once tests pass click on Submit.