c++ program to find sum of 2 number

c++ program to find sum of 2 number

or

c++ program to find addition of 2 number

Program:-



Output:-

Enter a 1st number    50
Enter a 2nd number   21
Sum of 50 and 21 is    71

Enter a 1st number    -50
Enter a 2nd number   21
Sum of -50 and 21 is    -29


Enter a 1st number    50
Enter a 2nd number   -21
Sum of 50 and -21 is    29


Enter a 1st number    -50
Enter a 2nd number   -21
Sum of -50 and -21 is    -71




Leave reply

Add your comments here

Back to Top