jituTechnology

jituTechnology

Write the program to print following patterns 1 using loops

/*program to print numbers in the following  using loops.
Programmed by : kiran shrestha
Roll no. : 10121
Programmed on : 7th feb, 2011*/
#include <stdio.h>
#include <conio.h>
void main ()
{
     int i,j;
        for (i=1;i<=5;i++)
           {
           for (j=1;j<=i;j++)
           {
                     printf (“%d\t”,i);
        }
           printf (“\n”);
           }
   getch();
}
output
1
22
333
4444
55555
Add a comment

Comments (1)

  1. Sindy StrictlandApril 4, 2012 Reply
    Attractive component to content. I just stumbled upon your weblog and in accession capital to say that I acquire in fact enjoyed account your weblog posts. Any way I’ll be subscribing to your augment and even I achievement you access persistently rapidly.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

September 2020
S M T W T F S
« Jun    
 12345
6789101112
13141516171819
20212223242526
27282930