C Program
Q.1] C Program for Printing Alphabet Patterns
Example :-
#include<stdio.h>
#include<conio.h>
void main()
{
int r,c;
clrscr();
for(r=65;r<=69;r++)
{
for(c=r;c>=65;c--)
{
printf("%c",r);
}
printf("\n");
}
getch();
}
Q 1] C Program for Printing Alphabet Patterns
#include<stdio.h>
#include<conio.h>
void main()
{
int r,c;
clrscr();
for(r=65;r<=69;r++)
{
for(c=r;c>=65;c--)
{
printf("%c",r);
}
printf("\n");
}
getch();
}
Output :-
No comments:
Post a Comment