Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int w;
  8. int d[6];
  9. int g;
  10. int r;
  11. int a;
  12. w=0;
  13. while (d[w]>0){
  14. cout<<"vedi shislo";
  15. cin>>d[w];
  16. w++;
  17. d[5]=0;
  18. };
  19. r=0;
  20. a=0;
  21. while (r<100000){
  22. if (d[a]>0){
  23. cout<<"*";
  24. d[a]=d[a]-1;
  25. a++;
  26. };
  27. if (a==w) {
  28. a=0;
  29. };
  30. };
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement