Print different triangle in vertical and horizontal

Hi,
I have a problem to print different type of triangle like this:
Someone can me help?
Thank you very much.
Jas

Yes, but with different for what is the way?
For exemple with this two triangles:
public class Triangles
public static void main(String[] args){
int number =7;
String triangle = "";
String triangle2 = "";
//first triangle
for(int i=0; i< number; i++)
triangle = triangle + '*';
System.out.println(triangle);
System.out.println("\n");
//second triangle
for(int f=0; f<number+f; f++)
for(int k=0; k<number; k++)
System.out.print('*');
number = number -1;
System.out.print("\n");
System.out.println("\n");
}

Similar Messages

  • HP LaserJet 5500dtn print quality issues: vertical and horizontal streaks

    Hi,
    I am getting large vertical yellow streaks, accompanied by cyan and magenta vertical dashes on each print.  Also, each page has vertical and horizontal black streaks.  I've cleaned the fuser and that hasn't made much of a difference.  I've also tried cleaning some of the cartridges, which didn't help.  The internal roller of each cartridge continues to get covered with excess toner.  Furthermore, I get a weird offset of some of the text (a faded version of the text that is offset about 1.5" from the regular text).  Is there anyway to fix this issue by cleaning certain parts?  Any other suggestions?  Thanks

    Hi,
    Yes it is in Warranty. It is virtually brand new.
    After I last posted I got through to the online chat support and was sent an email with options to 'troubleshoot' which I had already done with no success.
    I was also given a link to try to update the printer firmware - which I will try when I get home from work.
    I will see if that makes any difference but am sceptical as the printer worked fine the first time round but hasn't worked since and nothing has changed on it.
    Chris.

  • Word document pdf printing with vertical and horizontal pages

    I have a Word document that has both vertical and horizontal formatted pages.  When I print to PDF, the I get a new pdf file whenever a page orientation change is found.  pages 1 to 7 are vertical, 8 to 12 are horizontal and 13 to 20 are vertical again.  If I print to a file named "out_to_PDF" I get 3 files named "out_to_PDF", "out_to_PDF2" and "out_to_PDF3", the first one with pages 1 to 7, the second one with pages 8 to 12 and the third one with the remaining pages.  Is there a way to get only one file with all the pages?
    I know I can merge the files later.  This file with 20 pages is no problem.  I have several 70+ page docs, with multiple changes between horizontal and vertical that will result in 20 or more separate pdf files.
    Any pointers?

    Word renders print jobs that change the orientation as separate print jobs. So, each print job becomes its own PDF.
    You can make an Automator workflow to combine PDFs. I’m not sure how it decides the order it combines them, so you’d have to experiment.
    This is built as an Application where you’d drop all of the PDFs onto the App icon and it will open the combined PDF where you can edit, name, and save.

  • Quick Look PDF with vertical and horizontal pages

    Is there any way to make Quick Look preview a PDF file with vertical and horizontal pages without adding white padding and retaining the aspect ratio?
    Now, if I have a PDF with page 1 vertical and the other pages horizontal QL shows the latter also with the ratio of a vertical page and adds white padding at their top and bottom. You get the inverse output if the first page is horizontally oriented, but the rest are vertical.

    Word renders print jobs that change the orientation as separate print jobs. So, each print job becomes its own PDF.
    You can make an Automator workflow to combine PDFs. I’m not sure how it decides the order it combines them, so you’d have to experiment.
    This is built as an Application where you’d drop all of the PDFs onto the App icon and it will open the combined PDF where you can edit, name, and save.

  • Center text in text field - vertically and horizontally

    Hi to all,
    I have a text field with a specific size (for example 10x10 cm) I need this size because all the fields in the report must have this minimum size and they just can grow vertically (expand).
    But i need to put the text centered in the field, vertically and horizontally. just in the middle whatever the size of the box.
    The parameter "Center" in justify text doesn't help. Only adjust horizontally.
    Thanks in advance.
    Filipe Almeida

    Hello,
    If you want to center vertically, you have to use an anchor .
    Regards

  • Center all vertically and horizontally?

    I'm trying to self-publish a book using CreatSpace on Amazon.  They want an extra 1/8" around all margins of a 6x9" book (actually more on the width) to allow for bleed.  I have to generate a PDF.  When I changed the page size it kept the type in the same spot, and made the pages jump back and forth a little in the PDF.  It would be good if they stayed in the same place.  How can I center ALL the artwork -- including the headers on the master page -- both vertically and horizontally to fill a particular page size?  Thanks for any advice.

    There may be a bit of miscommunication going on. You should be designing with the final trimmed page size in mind, and if you have images or solids that need to bleed, they need to extend beyond the trim size. When output to PDF, you specify whether to include crops and bleeds, and the size of the crop marks and bleed area. For example, if you want something like this crappy example I just knocked off:
    You would set up your page size at 6x9 and place the images like this:
    …and when output to PDF with the marks of your choice:
    …you get something like this:
    …which results in a PDF whose size is 6.83x9.83, but when trimmed will be 6x9. If you measure from the crop marks, the size is 6x9, and if you measure from the bleed marks, the size is 6.25x9.25, which is the trim size with 1/8" bleeds on all sides. Ask the publisher what marks they would like. They may not want bleed guides or color bars, so just give them what they want.

  • Center vertically and horizontally with a single layout?

    verticalLayout has the horizontalAlign property, and horizontalLayout has the verticalAlign property.  How can you use a particular layout to determine the flow of the children, but also specify vertical and horizontal alignment?  In Flex 3 this was as simple as <VBox verticalAlign="middle" horizontalAlign="center">...

    Take a look at http://forums.adobe.com/thread/448063
    If you don't want to use extra containers then you could use Spacer components.
    For example to align vertically in the center:
    <s:VGroup width="200" height="200" horizontalAlign="center>
      <mx:Spacer height="100%" />
      <s:Button label="center aligned" />
      <mx:Spacer height="100%" />
    </s:VGroup>
    Or at the bottom:
    <s:VGroup width="200" height="200" horizontalAlign="center>
      <mx:Spacer height="100%" />
      <s:Button label="center aligned" />
    </s:VGroup>

  • Why are some of my pages centering themselves (vertically and horizontally) after I select the "Shrink document to avoid overwriting..." option under Add Headers and Footers?

    I'm working in Adobe Acrobat X Pro. I added header and footers through Adobe. I needed to select the "Shrink document to avoid overwriting the document's text and graphics" feature under the "Appearance Options..." option within the "Add Header and Footer" window. Some of the pages in my document that only had a few lines of text on them centered themselves (vertically and horizontally). How can I prevent that from happening?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Iphone 5 rotates between vertical and horizontal modes, but does not flip vertically.

    New Iphone 5 rotates between vertical and horizontal modes, but does not flip vertically.
    Tried restarting, checked the lock, gyroscope.

    Hey Oprion,
    Thanks for the question and congrats on your new iPhone 5c. The orientation of your iPhone will depend on the application you are using. For example, most of the built in applications only support the three main orientations (Horizontal, Vertical, Horizontal), whereas the Voice Memo’s application will operate “upside down” for easier access to the microphone.
    Change the screen orientation - iPhone
    http://help.apple.com/iphone/7/#/iph3badf94ec
    Thanks,
    Matt M.

  • Brother printer misses A4 paper vertical or horizontal, using Mac OS 10.6.8 & 10.8.8

    When printing from PS CS5.1 (ver. 12.1), I can see the print dialog for Brother printers on my Mac (OS 10.6.8 or 10.8.8). Papers were printed with misses that image in horizontal A4, although I had set image in vertical A4. I can see a fit of image to horizontal A4 on print dialog.
    Another files made or opened by Word, Preview, Mail, etc. can be printed without any troubles. Although I had inquired regarding the matter to Brother and Apple, they recommend inquiry to Adobe.
    Thanks in advance.

    Hello BionicBird,
    I have a Brother MFC6490CW  On my Mac the Brother CUPS driver is installed.
    I notice the vertical offset on my JIS B4 paper. To fix this I click on Page Setup. then I go to Page Size in Print Preferences. In the list I select "Manage Custom Sizes" and there I click + to add my custom size and name it "B4 Center" where my margins are .25 inches all around.
    Then in Page Size I select B4 Center from the list and it will print centered on my Brother.
    1.  First click the button marked in red.
    2.  On "Paper Size" choose Manage Custom Sizes which should be at the bottom of the paper sizes list.
    3. Click on "+" to add a custom size. Double-click on Untitled to rename it to A4 Center. Set Page size and margins.  Press OK
    4. From your Page Size menu, A4 Center should be at the bottom as a custom size, select it and use it in Photoshop.

  • Advice on vertically and horizontally centering page content

    Hello
    can any one offer advice on how to veritcally and
    horizontally center the content. On this page
    http://www.karenandersonphotography.com.au/
    I want the red top/bottom borders to be the same height regardless
    of screen size currently in larger screens the red at the bottom of
    the page expands.
    any advice appreciated.
    thanks Shontelle

    There is no such thing as auto height.
    Vertical centering is only achievable reliably with two
    approaches -
    1. Using frames. <ptui>
    2. Using tables - the method is described on Gary's site -
    http://www.apptools.com/examples/tableheight.php
    Realistically, just center things horizontally. Nobody will
    care that you
    forget the vertical part.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "SnakEyez02" <[email protected]> wrote in
    message
    news:g35s91$f7$[email protected]..
    > Just put a container around the header, footer and
    content to the width
    > you
    > want. Then set height of the footer since that is not
    defined in your
    > CSS.
    > And lastly set the margin of the container to auto.
    >

  • Image Sequence with vertical and horizontal photos

    I'm trying to use a particle emitter with image sequence to make photos appear and move one at a time. I have collected about 20 JPEGs that I numbered sequentially so Motion would read them as an image sequence. No problem there. Most of the photos have a horizontal orientation (3000x2000) but several are vertical (2000x3000), and Motion is cropping the vertical images to fit within a horizontal frame (like this). When I apply the particle emitter, that cropping is retained.
    I know I have seen examples of a similar process and the emitter treats the photos are individual pieces, retaining their original size and orientation. What am I doing wrong?

    Technically, in a proper Image Sequence, all images are the same size/aspect ratio.
    What you'll need to do is make on set (vertical or horizontal) a new size, to fit inside the other. The Particle Emitter will matte it's images to one or the other, which ever comes first.

  • Herringbone lines, and vertical and horizontal lines on display which dims

    I have an iMac G5 purchased in 2005, six months later under the extension program for the video and power issues, Apple installed a new motherboard and a new power pack. Up to now, everything has been okay.
    This morning I turned on my computer and saw the same herringbone lines, vertical lines, horizontal lines on the display which went from dark to light in color. I waited for a while, and a message said to restart my computer which I did.
    Because of the previous problems, I am wondering if the motherboard or power pack is going out again. After the start up, my computer was okay for the rest of the day. I took some photos and a video of it to show what is happening to the display, any suggestions.

    Thanks Scott for the quick reply. Knowing what happened five years ago with the display, I figured that this was the same issue. It is just a matter of time. I quickly backed up my system to another hard drive and wanted to confirm in the discussion group that my G5 was on it's last gasp.
    Since I would be lost without my computer, I just put in an order for the new iMac 27" quad core i5 computer. Now I will have to make monthly payments again, but I think that I will have a much faster, and better computer especially with the Intel processor.
    Thanks for your reply, and I hope that my new computer will last longer than five years. My track record was five years for my lime green iMac G3, and now five years for my iMac G5.
    Thanks again,
    DaisyMay

  • Would like to do a custom layout page in creating an iphoto book is that possible. I would like to be able to change vertical and horizontal slots to fit my needs

    can I do a really custom layout on a page while creating an Iphot book .. changing my verical and horizontal choices .. what exactly is the custom choice for in page layout choices .. example 2, 3, 4, etc photos and at the bottom custom .

    Experiment with these keyboard commands:
    Move Photo/Text Box:
    "command" + Arrow Key
    "command" + "shift" + Arrow Key
    Change Photo/Text Box Height/Width:
    "command" + "option" + Arrow Key
    "command" + "option" + "shift" + Arrow Key
    Rotate Photo/Text Box:
    "command" + "control" + Up/Down Arrow Key
    "command" + "control" + "shift" + Up/Down Arrow Key
    Be sure to Preview a PDF before sending your order off.

  • How can I change the printer page orientation from vertical to horizontal?

    I cannot seem to find a way to get the desired page to print horizontally instead of vertically as it normally does. Can I do this; how?
    Currently, Family Tree Maker is the app in which I'm having this problem. I want to print a census report in "landscape" instead of "portrait."

    @sambrack
    Try the '''Preview''' button at the bottom of the Print dialog window and see if there are Portrait / Landscape buttons at the top of the Print Preview window. ''(Those buttons are there on Linux & Windows versions of Firefox, and most likely on Mac, too.)''
    If so, select Landscape and then Print from that Preview window.

Maybe you are looking for

  • Custom application is not working after the support package upgrade.

    Hi SDN Folks, I have upgraded the portal from SP09 to SP25 successfully. But after the upgrade our custom application is not behaving as before. When we submit anything in the custom page its returning to home page. No error in the log files also. Cu

  • How to get dynamic icons like in "Searching this Mac"?

    Hello, So whenver I use spotlight to search something and click on "Show all in finder" I get the "Searching This Mac" window. The one where I can add filters and "stuff". When I resize this window, the icons rearrange themselves to allways fit the w

  • Maximum Characters Input Box

    What is the fattest letter? i.e. what should I use to test that content always fits within an input box regardless of what the user types? Is it the letter "M"? I know M is used as a standard in other design circles. Thanks

  • How to copy data from mac book to seagate hard disk

    i cannot seem tp copy data on my external hard disk.how do i copy data from my mac book pro to seagate harddisk

  • Is Central Search Searchable Via Upper and Lower Case Letters

    Good evening, Does anyone know if Central Search is searchable using both upper and lower case letters?  We have the functionality enabled and can only bring back search results when we use upper case letters.  When we search on the same marketing ob