- 1

Write a program c++

Write a program that stores 2 numbers The first is 9 and the second is 11 And type out the result of adding 1 to the first, and substracting the second from that.

15th Feb 2021, 7:06 AM
Oroob Mustafa
Oroob Mustafa - avatar
2 Respostas
+ 4
Oroob Mustafa Where is your attempts?
15th Feb 2021, 7:27 AM
A͢J
A͢J - avatar
0
Oroob Mustafa if you did learn the first part of the c++ course , you will write that program in 30 seconds you are new here #include <iostream> using namespace std; int main() { int num=9; int num1=11; cout<<num+1<<" adding 1 to the first....\n"; cout<<num+1-num1<<" substracting the second from that"; }
15th Feb 2021, 9:56 AM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar