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",j);
}
printf("\n);
}
getch();
}
Output
A B C D E
A B C D E
A B C D E
A B C D E
A B C D E
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",j);
}
printf("\n);
}
getch();
}
Output
A B C D E
A B C D E
A B C D E
A B C D E
A B C D E
0 komentar:
Post a Comment