Executing this command is getting me an infinite loop also in the while condition I wrote i=30 instead of i<=30 wanna know what does i=30 does to my code:
#include <iostream>
using namespace std;
int main()
{
int i=30;//initialization
while (i =30)
{
cout<< i<< ' ';
i=i+1;
}
}