DO NOT MISS

Ads

Sunday, 14 August 2016

Program 12(Format 12) Using Nested for Loop


#include<stdio.h>
#include<conio.h>

void main()

    {

        int i,j;
        clrscr();

       
for(i=1;i<=5;i++)
               {
                    for(j=1;j<=i;j++)

                    printf(" %d ",i);
                    printf("\n");

              }

        getch();

    }
___________________________________________________________________________

Greataims

 
Copyright © 2016 Computersadda. Designed by @ Computersadda Team - Published By Greataims