Tuesday, 21 February 2017

Addition of numbers(Integer data type)

QUESTION DESCRIPTION :

Jennys home work for first day is to find addition of two numbers, help jenny to solve the problem.


TEST CASE 1 

INPUT

6
2

OUTPUT

The addition of two number is:8


EXPLANATION :

This is a simple problem which requires you to accept two numbers and then print addition of the first number and the second number.


ALGORITHM :

  • Take input from the user ( a,b )
  • Add the two numbers ( a+b ) 
  • Print the result.

SOLUTION : (Please use this as reference only)

CODE

No comments:

Post a Comment