Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w;
- int d[6];
- int g;
- int r;
- int a;
- w=0;
- while (d[w]>0){
- cout<<"vedi shislo";
- cin>>d[w];
- w++;
- d[5]=0;
- };
- r=0;
- a=0;
- while (r<100000){
- if (d[a]>0){
- cout<<"*";
- d[a]=d[a]-1;
- a++;
- };
- if (a==w) {
- a=0;
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement