Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.lib;
- public class IF {
- public static void main(String args[])
- throws java.io.IOException {
- for(int i=2; i<=100;i++){
- System.out.print("Делители "+i+": ");
- for(int j=2; j<i;j++){
- if(j==(i/2)+1) {
- System.out.println();
- break;
- }
- if (i % j == 0) {
- System.out.print(j + " ");
- }
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement