DO NOT MISS

Ads

Monday 15 August 2016

Program 13(Format 13) Using nested for Loop


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

void main()

     {

         int i,j;
         clrscr();

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

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

                }

         getch();

     }
___________________________________________________________________________


Greataims

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