Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int y,x,c,v,i,max;
- int a[i];
- i = 0;
- max = 0;
- cout << "vvedi chislo cifer skolko ti hotheh vvesty "<< endl;
- cin >> x;
- while (i < x)
- {
- cout << "vvedi chislo" << i;
- cout << endl;
- cin >> a[i];
- cout << endl;
- i++;
- }
- i = 0;
- while (i < x)
- {
- if (a[i] > max)
- {
- max = a[i] ;
- }
- }
- i = 0;
- while (i < max*x)
- {
- if (a[i] > 1)
- {
- cout << "*" ;
- a[i] = a[i] - 1;
- }
- else
- {
- cout << " " ;
- }
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement