Problem:
Print the shape seen below.

Solution:
public class Pyramid { public static void main (String[] agrs) { int MAX = 7; for (int i =1;i<=MAX;i++) { for (int j =MAX;j>i;j--) { System.out.print(" "); } for (int k =0;k<i-1;k++) { System.out.print(i-k+ " "); } for (int j =MAX;j>MAX;j--) { System.out.print(" "); } for (int k =0;k<i;k++) { System.out.print(k+1+ " "); } System.out.println(); } } }
Flatbed scanners generally deliver the best combination of quality, flexibility, and usability in scanning. They can be used to scan different kinds of media, including photos (with the additional use of a transparency adapter); they can be used to scan text for OCR and document archiving; and they can be used to scan material of varying sizes and thicknesses -- from small postage stamps to large mechanical blueprints and 3D objects. To determine the flatbed scanner for your needs, this buying guide covers some of the more important large format flatbed scanner specifications that you will need to know.
ReplyDeleteAre you overpaying for your copier maintenance? I'm willing to bet you are. Most people pay little attention to their cost for copies and the copier companies are betting on it too! copier marketing
ReplyDelete