Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Pyramid-Computer Fundamentals and Programming-Coding Assignment Solution, Exercises of Computer Engineering and Programming

Kapish Gupta assigned programming task at Assam Don Bosco University. This code was developed and compiled in Borland. It includes: Pyramid, Number, Getch, Programming, Language, C, Enter, Scanf, Printf

Typology: Exercises

2011/2012

Uploaded on 07/28/2012

dewansh
dewansh 🇮🇳

4.4

(10)

92 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
4
#include<stdio.h>
#include<conio.h>
void main()
{
int count,a,b,c;
clrscr();
printf("\n\nEnter the Number of * to Make Pyramid\n\n");
scanf("%d",&count);
printf("\n\n\n\n");
for( a=1;a<=count;a++)
{
for( b=1;b<=count-a;b++)
printf(" ");
for( c=1;c<=c*2-1;c++)
printf("*");
printf("\n");
}
getch();
}
Pyramid
docsity.com

Partial preview of the text

Download Pyramid-Computer Fundamentals and Programming-Coding Assignment Solution and more Exercises Computer Engineering and Programming in PDF only on Docsity!

#include<stdio.h> #include<conio.h> void main() { int count,a,b,c; clrscr(); printf("\n\nEnter the Number of * to Make Pyramid\n\n"); scanf("%d",&count); printf("\n\n\n\n"); for( a=1;a<=count;a++) { for( b=1;b<=count-a;b++) printf(" "); for( c=1;c<=c2-1;c++) printf(""); printf("\n"); } getch(); }

Pyramid

docsity.com