Computer Science, asked by anantkrishnag, 9 months ago

WAP to enter a number and check whether it is a single, double or triple digit number in java programming​

Answers

Answered by mishajain100
18

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!

Answered by rahulkumar24032008
4

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......

Similar questions