Help! Creating a Table, Please??

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,
Never mind, I got it.
1
2
3
4
5
6
7
8
9
10
11
12
#include<iostream>
using namespace std;

int main()
{
    int num=0;
    cout<<"Enter no. 3: ";
    cin>>num;
    for(int i=1;i<=10;i++)
    cout<<i<<" + "<<num<<" = "<<i+num<<endl;
    return 0;
}
Still, Thank you! Chriscpp
Topic archived. No new replies allowed.