0
How to print counting from 0 to infinite with while lopps in c++
3 odpowiedzi
0
No data type has a range upto infinite and even if there was , it would gonna take infinite time to run it completely and you would end up with time limit exceeded.
0
welp, 3 months but whatever
int i;
while(true){
cout << i++ << " ";
}
for(int i;cout << i++ << " ";){}
of course, run time error because it takes a lot time to get to infinite.
0
Choe it tooks infinite time to get infinity 😂