variable list for this program
import java.util.*;
public class number
{
public static void main(String args[])
{
int i, j, c0=0,c1=0,c2=0,c3=0,c4=0,c5=0,c6=0,c7=0,c8=0,c9=0;
char a;
String st;
Scanner in = new Scanner(System.in);
System.out.println("Enter the number");
st=in.nextLine();
j=st.length();
for(i=0; i 1)
{
System.out.println("0 is repeating " +c0 +" times");
}
if(c1>1)
{
System.out.println("1 is repeating " +c1 +" times");
}
if(c2>1)
{
System.out.println("2 is repeating " +c2 +" times");
}
if(c3>1)
{
System.out.println("3 is repeating " +c3 +" times");
}
if(c4>1)
{
System.out.println("4 is repeating " +c4 +" times");
}
if(c5>1)
{
System.out.println("5 is repeating " +c5 +" times");
}
if(c6>1)
{
System.out.println("6 is repeating " +c6 +" times");
}
if(c7>1)
{
System.out.println("7 is repeating " +c7 +" times");
}
if(c8>1)
{
System.out.println("8 is repeating " +c8 +" times");
}
if(c9>1)
{
System.out.println("9 is repeating " +c9 +" times");
}
}
}
Answers
Answered by
0
Answer:
I don't know
Explanation:
please mark me brainlist
Similar questions