Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void kolos1()
- {
- int a[20];
- for (int i = 0; i < 20; i++)
- {
- a[i] = rand() % 99 + 1;
- printf("%d ", a[i]);
- }
- int i = 0;
- int k = 19;
- for (int j = 1; j < 20; j++)
- {
- if (a[j] > 25 && a[j] < 60)
- {
- }
- else
- {
- if (a[j] <= 25)
- {
- for (;i<j;i++)
- {
- if (a[i] <= 25)
- {
- }
- }
- }
- }
- }
- printf("\n");
- for (int i = 0; i < 20; i++)
- {
- printf("%d ", a[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement