i didn't find my error ..
please check my code ..
using namespace std;
cout << "Enter Value for rows to print: ";
cin >> input;
int no = 1;
int i, j = 0;
cout << no << " ";
no = no + 1;
cout << endl;
j = 0;
The first apparent bug I can see is: the variable —SA
i is not initialized. You only initialize
j in the same line where you declare
You need to understand very clearly: if you leave any variables not initialized, the result can be unpredictable.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)