Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- int array1[300], array2[300], array3[300];
- int c1 = 0, c2 = 0, c3 = 0;
- for(int i = 400; i >= 100; i--) {
- if(i % 4 == 0) {
- array1[c1] = i;
- c1++;
- }
- if(i % 6 == 0) {
- array2[c2] = i;
- c2++;
- }
- if(i % 4 != 0 && i % 6 != 0) {
- array3[c3] = i;
- c3++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment