OneCompiler

Check weather given number is a Perfect number or not. If given number is a perfect number then print YES otherwise print NO. sample input: 6 sample output: YES sample input: 15 sample output: NO sample input: 496 sample output: YES

213

Example heading with h2 size

Example heading with h3 size

Following is sample java code.

int i = 10;
if(i>0){
    System.out.println('positive');
}