How to make a this table in c++ programming?
1 + 3 = 4
2 + 3 = 5
3 + 3 = 6
4 + 3 = 7
5 + 3 = 8
6 + 3 = 9
7 + 3 = 10
8 + 3 = 11
9 + 3 = 12
10 + 3 = 13
What did you try in order to print this table? Post your coding efforts.
#include<iostream>
using namespace std;
int main()
{
int num = 0;
int i;
cout << "Enter no. 3: ";
cin >> num;
for (i = 1; i <= 10; i++);
{
cout << i << endl;
}
return 0;
}
..and I'm stuck,
Still, Thank you! Chriscpp