C++ Program to Add Two Numbers

C++ Program ; On this software, person is asked to go into integers. Then, the sum of those integers is saved in a variable and displayed at the screen. Number one tabs.
#encompass <iostream. H>
#consist of <conio. H>
int foremost()

C++ Program

int no1, no2, ans;
cout << “enter two integers: “;
cin >> no1 >> no2;
ans = no1 + no2;
cout << no1 << ” + ” << no2 << ” = ” << ans;
getch();

enter two integers: 4 5
four + 5 = nine

Add a Comment

Your email address will not be published.