WAP to enter a number and check whether it is a single, double or triple digit number in java programming
Answers
Answer:
import java.util.*;
class Number
{
static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter a single, double or triple digit number");
int n = sc.nextInt();
int c = 0;
while (n > 0)
{
n = n / 10;
c++;
}
if (c == 1)
System.out.println("Single digit number");
else if (c == 2)
System.out.println("Double digit number");
else if (c == 3)
System.out.println("Triple digit number");
else
System.out.println("Not a single, double or triple digit number");
}
}
Hope this helps u!! Pls mark as brainliest!
Answer:
Answer:REM (Roentgen equivalent man) One of the two standard units used to measure the dose equivalent (or effective dose), which combines the amount of energy (from any type of ionizing radiation that is deposited in human tissue), along with the medical effects of the given type of radiation......