Write a program for printing the following number format

# include<stdio.h> #include<conio.h> void main ( ) { int i, j; for ( i = 1; i < = 4 ; i ++) { for ( j =1; j...

# include<stdio.h>
#include<conio.h>
void main ( )
{
int i, j;
for ( i = 1; i < = 4 ; i ++)
{
for ( j =1; j < = i; j ++)
{
 printf("%d\t",i);
}
printf (“\n”);
}
getch();
}

Out Put:
1
2 2
3 3 3
4 4 4 4

Related

FACTORIAL OF A NUMBER USING RECRSION AND WITHOUT RECURSION

#include<stdio.h> #include<conio.h> int fact(int n); int factrec(int n); main() {      int n,ch,y;      clrscr();     ...

Program for SWAPING OF 2 NUMBERS USING CALL BY VALUE ,CALL BY REFERENCE

#include<stdio.h> #include<conio.h> swap(int x,int y); swap(int *x,int *y); main() {           int a,b,ch;     ...

PROGRAM FOR FINDING BIGGEST OF THREE NUMBERS

#include<stdio.h> #include<conio.h> void main() {  int a,b,c;  clrscr();  printf("\n enter a,b,c values");  scanf("%d%d%d",&a,&b,&c);  if(a&g...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item