Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a=0;
- //Pętlą WHILE
- while (a<300)
- {
- cout<<a<<endl;
- a=a+1;
- }
- a=0;
- // Pętlą DO WHILE
- do
- {
- cout<<a<<endl;
- a=a+1;
- }
- while(a<300);
- //Pętlą FOR
- for(a=0;a<301;a=a+1)
- {
- cout<<a<<endl;
- }
- }
Add Comment
Please, Sign In to add comment