Posts

Showing posts with the label input-output

Program to print sum of two numbers.

  ap1 #include <iostream> using namespace std ; //Program to print sum of two numbers. int main (){     int amount1 ;     cin >> amount1 ;     int amount2 ;     cin >> amount2 ;     int sum = amount1 + amount2 ;     cout << "sum \n " ;     cout << sum ;     return 0 ; }