Thread: program to print pattern

  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    2

    Post program to print pattern

    program to print pattern-selection_002-jpg

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,731
    The answer is no.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Dec 2017
    Posts
    2
    how to print in c or java?

  4. #4
    Registered User
    Join Date
    Apr 2017
    Location
    Iran
    Posts
    101
    Hi,

    Usage of global variable in not recommended. One alternative would be to use variable inside a function with static duration.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,215
    You need to post an effort before getting help. Being able to scan and post an image doesn't cut it.

    At least have a go at n=1.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 03-31-2015, 05:58 PM
  2. print c pattern
    By surbhijain93 in forum C Programming
    Replies: 7
    Last Post: 03-11-2015, 12:32 PM
  3. Number pattern program help
    By nsriv in forum C Programming
    Replies: 7
    Last Post: 12-13-2012, 07:55 AM
  4. How do I print a pattern flush right?
    By Basia in forum C Programming
    Replies: 5
    Last Post: 06-11-2002, 07:15 AM
  5. Write a program that prints a pattern of asterisks?
    By Basia in forum C Programming
    Replies: 2
    Last Post: 06-01-2002, 05:56 PM

Tags for this Thread