Is this code logically corrrect.In order to make it infinite what condition/s should be used.Code:/*
#include<iostream>
#include<conio.h>
using std::cout;
using std::cin;
using std::endl;
int main()
{
// declare variables
int x,counter;
cout<<"\n\n\t\t"<<2;
// print squares
for(x=2;x<=counter;x*=2)
{
cout<<"\n\n\t\t"<<x*2;
}
getch();
}