Completely Solved C, C++ Programs Assignment.




C Program to print character pyramid-I

Filed Under:

Problem 19. C Program to print character pyramid-I
#include<stdio.h>
#include<conio.h>
main( )
{
char i,j;
clrscr();
for(i=65;i<=70;i++)
{
for(j=65;j<=i;j++)
printf(“%c”,j);
printf(“n”);
}
getch( );
}

C compiler: gcc 4.1.2

 Back to main directory: Sample C Program | Software Practical | Solved C Assignment



Get Free Programming Tutorials and Solved assignments