Ask a Question | Answer a Question! |
![](/img/l.gif)
Submitting your question...
ResFinder - Thousands of Practice Papers
prog for d pattern
123454321
1234 4321
123 321
12 21
1 1
am posting correct answer here:
class figure
{
public static void main(String args[])
{
int i,j,b=0;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
System.out.print(j);
}
for(j=1;j<=b;j++)
{
System.out.print(" ");
}
for(j=i;j>=1;j--)
{
if(j==5)
continue;
System.out.print(j);
}
System.out.println();
if(b==0)
b=b+1;
else
b=b+2;
}
}
} |
![](//pl.respaper.com/64/dwaipayanray1.jpg) |
asked by Dwaipayan Ray (dwaipayanray1) 8 years ago |
1 |
Name the keyword that is used to invert the value of a boolean |
![](//pl.respaper.com/64/bestintheworld.jpg) |
asked by Saahil Sankar B (bestintheworld) 8 years ago |
1 |
APC Computer text out-of-syllabus parts ? |
![](//pl.respaper.com/64/rw45.jpg) |
asked by Rw45 (rw45) 8 years ago |
1 |
Whats "String[] args" ? |
![](//pl.respaper.com/64/akashdivakar.jpg) |
asked by Akash Divakar (akashdivakar) 8 years ago |
1 |
how to extract a specific digit from a number input by the user?....for example the the 1rst digit or 2nd last digit... |
![](//pl.respaper.com/64/saika.jpg) |
asked by Sarashika (saika) 8 years ago |
3 |
Hey guys
Does anyone have physical education BOARD PAPERS
If yes please upload |
![](//pl.respaper.com/64/heth.jpg) |
asked by Heth (heth) 8 years ago |
1 |