1: //A
2: //AB
3: //ABC
4: //ABCD
5: //ABCDE
6: #include<stdio.h>
7: #include<conio.h>
8: void main()
9: {
10: int i,j,n;
11: clrscr();
12: printf("Enter the number of rows you want:\n");
13: scanf("%d",&n);
14: for(i=1;i<=n;i++)
15: {
16: for(j=1;j<=i;j++)
17: {
18: printf("%c",'A' + j-1);
19: }
20: printf("\n");
21: }
22: getch();
23: }
getsprogramming Tutorials , C Programming, CPP Programming and JAVA Programming , Python Programming , Javascript Programming Welcome to getsprogramming Blog Here You Find Different Programs in Easier way to Explain and gain Knowledge and Try Your Self..Thanks
Saturday, 28 November 2015
Write a C Program to print A,AB,ABC,ABCD,ABCDE pattern
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment