Friday, 11 January 2019

Filled Under:

Pattern 4 using c[c programming examples with output]

C programming examples with output

Pattern
Program
#include<stdio.h>
#include<conio.h>
void main()
{
char i,j;
clrscr();
for(i='A';i<='E';i++)
{
for(j='A';j<='E';j++)
{
printf("%c",i);
}
printf("\n");
}
getch();
}

Output:

AAAAA
BBBBB
CCCCC
DDDDD
EEEEE

0 komentar:

Post a Comment