Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- //Forma 1
- for (int i = 0; i <= 10; i++) {
- if ((i % 2) != 0) {
- System.out.println(i);
- }
- //Forma 2
- System.out.println("----------------------------");
- for (int c = 0; c <= 10; c++) {
- c = c + 1;
- System.out.println(+c);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment