Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "please enter " << SIZE3 << " numbers : ";
- int arr[SIZE3] = { 0 }, i = 0, j = 0, maxIndex = 0, p = 0;
- for (i = 0; i < SIZE3; i++)
- cin >> arr[i];
- maxIndex = 0;
- for (i = 0; i < SIZE3; i++)
- {
- if (arr[i] > arr[maxIndex])
- maxIndex = i;
- }
- for (i = 0; i < arr[maxIndex]; i++)
- {
- for (i = 0; i < SIZE3; i++)
- {
- if (arr[i] >= arr[maxIndex])
- cout << "* ";
- else
- cout << " ";
- }
- }
- cout << "\n";
Advertisement
Add Comment
Please, Sign In to add comment