write a blue J programme fot this pattern (iterations)
Attachments:
atharv33:
hlo
Answers
Answered by
1
class brainly
{
public static void main(String args[])
{
for(int i=5;i>=1;i--)
{
int demo=65;
for(int j = 1; j<=i;j++)
{
System.out.print((char)demo);
demo++;
}
System.out.println();
}
}
}
Hope this helps!
{
public static void main(String args[])
{
for(int i=5;i>=1;i--)
{
int demo=65;
for(int j = 1; j<=i;j++)
{
System.out.print((char)demo);
demo++;
}
System.out.println();
}
}
}
Hope this helps!
Attachments:
Similar questions
Computer Science,
8 months ago
Computer Science,
8 months ago
Geography,
1 year ago
Physics,
1 year ago
Chemistry,
1 year ago
Geography,
1 year ago