10 9 8 7
6 5 4
3 2
1
wap to print the upper pattern
Attachments:
Answers
Answered by
0
Hey there ! I am printing this in JAVA .
class pattern
{
public static void main(String args[])
{
int c=10;
for(int i=1;i<=4;i++)
{
for(int j=4;j>=i;j--)
{
System.out.print(c+" ");
c--;
}
System.out.println();
}
}
adityadav38:
thnku bt instead of limit 5 we have to take 4
Similar questions