Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Napishite chislo,i vi uznaete vse chisla ot 0, do nego samogo:";
- int a;
- cin >> a;
- int b;
- b=0;
- a=a+1;
- if(b<a)
- {
- while(b<a)
- {
- cout << b;
- if(b<a-1)
- {
- cout << ",";
- }
- b=b+1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement