Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////////
- int main()
- {
- int b = 1,
- a = 145;
- int arr[10] = {350, 10, 50, 855, 115, 94, 95, 105, 110, 220 };
- for (int i = 0; i <= 9; i++)
- {
- if (arr[i] > a)
- {
- arr[i] = b;
- }
- printf("arr[%d] = %3d\n", i, arr[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement