Tuesday, 21 February 2017

Modulo of numbers(Integer data type)

QUESTION DESCRIPTION :

Jenny's home work for Fifth day is to find modulo of two numbers, help jenny to solve the problem.


TEST CASE 1
 
INPUT

6
2

OUTPUT

The reminder of two number is:0


EXPLANATION:

The code requires you to perform modulo "%"Modulo Operation ) operation on the two integers received from the user. 


ALGORITHM:  

  • Take two variables from the user ( a,b )
  • Calculate the modulo ( a%b )
  • Print it with the exact required message ( Spelling of remainder is wrong )

SOLUTION : (Please use this as reference only)

CODE

No comments:

Post a Comment