DIGIT-ARC read-only archive · snapshot: July 23, 2026

Halo ladies and gentleman , i gt problem with this C program can help me ?

18 posts · originally from https://geek.digit.in/community/threads/halo-ladies-and-gentleman-i-gt-problem-with-this-c-program-can-help-me.92622/

I
ImBeck Original post #1
Jul 9, 2008 at 11:32 PM
Write a program that prompts the user for an integer and then displays a pyramid of this height made up of hash (#) on the screen.
A sample run is as follows:
How height would you like the pyramid to be? 8

#
# #
# # #
# # # #
# # # # #
# # # # # #
# # # # # # #
# # # # # # # #
krishnandu.sarkar
Jul 9, 2008 at 11:49 PM
Re: halo ladies n gentleman , i gt problem with this program can help me ?

hey dude..................u didn't mentioned the language...............I'm posting the coding for the program in C...........if the language differs then take the idea n logic frm this......

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n;
printf("Enter the length : ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
printf("\n");
for(j=1;j<=i;j++)
{
printf(" #");
}
}
getch();
}
utsav
utsav #3
Jul 9, 2008 at 11:54 PM
Re: halo ladies n gentleman , i gt problem with this program can help me ?

Use nested loop. 2 loops will do the work .run the loop from 1 to n whr n is the integer inputted . Try to do the rest of the homework urself :neutral: btw u should have mentioned the language to be used . How can u expect an answer when u havnt properly mentioned the question
Ecko
Ecko #4
Jul 10, 2008 at 12:45 AM
/*
Program to demonstrate
*
**
***
****
*****
******
*/

#include <stdio.h>
#include <conio.h>
main()
{
int i,j;
for(i=1;i<=8;i++)
{
for(j=1;j<=i;j++)
printf("*");

printf("\n");
}
getch();
}

Replace Star with #
Faun
Faun #5
Jul 10, 2008 at 1:23 AM
@OP
ask Master Chief and Covenants, they know the source code
though few floods may crept in as intermittent bigs during your playthrough.
QwertyManiac
Jul 10, 2008 at 8:16 PM
He put Halo ladies first, so Cortana would know the answer! :p
N
Jul 10, 2008 at 8:24 PM
^ :D i thought its related to master chief.

i think this question was part of some company's exam?
QwertyManiac
Jul 10, 2008 at 9:17 PM
Really? What kind of a company asks this? It must know that no one would be able to answer!
Kl@w-24
Kl@w-24 #9
Jul 10, 2008 at 10:27 PM
Halo ladies and gentleman , i gt problem with this C program can help me ?

*i38.tinypic.com/2uiyhix.jpg

*gigasmilies.googlepages.com/24.gif

No offence meant!! Peace!!
Faun
Faun #10
Jul 11, 2008 at 3:37 AM
^^here comes the showstopper...lolz
MetalheadGautham
Jul 11, 2008 at 5:20 AM
*i38.tinypic.com/2uiyhix.jpg

*gigasmilies.googlepages.com/24.gif

No offence meant!! Peace!!
*gigasmilies.googlepages.com/24.gifR*gigasmilies.googlepages.com/24.gifO*gigasmilies.googlepages.com/24.gifF*gigasmilies.googlepages.com/24.gifL*gigasmilies.googlepages.com/24.gif
H
Hitboxx #12
Jul 11, 2008 at 5:51 AM
Oh grow up guys! As smart as you all are, keep the fun where it is, don't mock new users.

Mass infractions issued on T159, QwertyManiac, nish_higher, abh1shek and MetalheadGautham :D
H
Hitboxx #13
Jul 11, 2008 at 5:54 AM
At ImBeck, posts such as this are considered homework and are not entertained here. Since your first time here I assume, this is ok. Next time, please refrain. Learning any language obviously requires research and logic of your own.

And also, when you put up a question on a public medium like a forum on the internet, try to form proper English sentences, else you have already seen here how things go ;)
QwertyManiac
Jul 11, 2008 at 6:39 AM
Apologies, but I only started kidding after the solution was given. :)
Kl@w-24
Kl@w-24 #15
Jul 11, 2008 at 1:14 PM
Sorry about that, just kidding! :D
Faun
Faun #16
Jul 11, 2008 at 1:22 PM
stop being sorry ! you made someone smile...thats priceless
MetalheadGautham
Jul 11, 2008 at 3:41 PM
ya please accept my apologies too. I thought you were atleast entertained with this joke of ours, but I guess you took it too seriously. Have fun on this forum.
H
Hitboxx #18
Jul 11, 2008 at 7:28 PM
Heh, ok easy! There was a reason I put the smiley there. You're all forgiven except T159, His day will come :D

Thread won't serve anymore purpose. Closing!