When i put a semi colon after while in this code
#include <iostream>
using namespace std;
int main(){
int i = 1, n =1 ;
while (i > 10);{
cout << n << ") " << "Hello world! \n";
i++;
n++;
}
cout << "Hi world !";
return 0;
}
Why does it print Hello world! once and then Hi world! is it just useless and why ?