Print pattern program in Java.
Share
Print pattern program in Java.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
class A
{public static void main (String args [])
{
int I=12936;
for(int u=1;u<=5;u++)
{
for(int j=1;j<=u;j++)
{
System.out.print("\t");
}
System.out.println(I%10);
I=I/10;
}
}
}
Explanation: