i am trying to write a program but it is not working the way it should?
can you find the infinite loop...
#include <iostream>
using namespace std;
int main() {
int input;
int InputCount=0;
int RowSize=2;
int ColumId = 0;
cin >> input;
if (input == 0);
cout << "done";
while((input <= -1)||(input >= 1));
{
while (InputCount <= RowSize){
if (InputCount == 0);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount ++;
if (InputCount == 1);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount ++;
if (InputCount == 2);
ColumId =(InputCount % RowSize);
cout << ColumId << endl;
cout << input;
InputCount ++;
}
}}