/*
* 1000+ C programs + tutorials
*
*
* 57_c_program_to_display_half_pyramid_of_alphabets_sequence_4
*
*
*
* Created on: Oct 22, 2014
* Author: Code2care.org
*/
#include
//#include <conio.h>
void main() {
// clrscr();
int coeff=1;
int i,j,k;
for(i=0;i<8;i++)
{
for(j=1;j<=8-i;j++) {
printf(" ");
}
for(k=0; k<=i; k++)
{
if (k==0 || i==0) {
coeff=1;
}
else {
coeff = coeff*(i-k+1)/k;
}
printf("%4d",coeff);
}
printf("\n");
}
// getch();
}
The best way to learn C programming is to practice more and more of programs .
Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.
BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.