Computer Science, asked by veenasrivastava144, 6 months ago

write a program to take one number in a variable and find the reminder by dividing by 10​

Answers

Answered by shaunakmallik06
0

This method of writing the progr in Java works only in Bluej . So if you are not using Bluej then you have to write the program using the syntax for main method which includes String[]args.

class Number{

public static void main(int a ){

System.out.println(a%10);

}

}

I hope it helps you and if you have any problem in understanding pls write it in the reply option.

Similar questions