Computer Science, asked by preetijain45345, 10 months ago

java program to check divisibility by 11
using divisibility rule of 11 and pls ans. as fast as possible
i will definately mark ans. as brainliest
tell only body of program

Answers

Answered by BRAINLYBOOSTER12
2

import java.util.scanner

public class MainJavaBhulGayaxD

{

public static void main(String args[]);

{

int n;

if (n % 11 == 0)

system.out.println("the given number"+n+" is divisible by 11");

else

system.out.println("the given number"+n+" is not divisible by 11");

}

}

Similar questions