Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class fsfsfs {
- public static void main(String[] args) {
- final int num = 20;
- int []pares = new int[num];
- int []impares = new int[num];
- for(int i=0;i<num;i++){
- if(i % 2 == 0){
- pares[i] = i;
- System.out.println("Pares: "+i);
- }else{
- impares[i]=i;
- System.out.println("Impares: "+i);
- }
- }}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement