write a program to accept numbers from the user till the user enters zero. Count and display number of two digit numbers present in the list
Answers
Answered by
0
Answer:
importJava.util.*
public class accept
{
public static void main()
{
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();int s=0;
while(a!=0)
{
if(a>=10&&a<=99)
{
s++;
}
a=sc.nextInt();
}
System.out.print(s);
}
}
Similar questions