Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i, k;
- for (i=1;i<=100;)
- {
- while (k<10)
- {
- k++;
- if (i<10)
- {
- cout<<i++<<" ";
- }
- else cout<<i++<<" ";
- }
- cout<<"\n";
- k=0;
- }
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment