0
Can anyone give simple example of using for and while loop together?
3 Answers
+ 1
int i=3; j=3;
while(j){
for(i=3;i<=6;I++){
cout<<i<<" "<<j;
}
j--}
0
for(int i=1;i<=10;i++)
{
cout<<i;
}
0
#include <iostream>
using namespace std;
int main()
{
for (int ans; ans < 100; ans++) {
cout << ans << endl;
}
return 0
}