Example: Program to Add Two Integers
Output
Enter two integers: 4 5 4 + 5 = 9
In this program, the user is asked to enter two integers. These two integers are stored in variables first_number and second_number respectively.
Then, the variables are added using the + operator and stored in the sum variable.
Finally, sum is displayed on the screen.