Is there like a For...Next Statement in Borland C++?
Something like:
So I can print a list of numbers down the screen?Code:void main() { int a; cout<<"1-100:\n\n\"; 'For a = 0 to 100 cout<< a; 'Next a cin>> a; }
(1\n\2\n\3\n\4\n\5\n\6\n\7\n\8\9\10\n\.....)
Hope you get what I mean.




Reply With Quote