<stdio.h>
<cs50.h>
int main (void)
{
int hashes, spaces, heigh
heigh = GetInt ()
do
{
printf("please choose a positive integer for the height of Mario's pyramid less then 24:"\n");
}
while (heigh <= 23);
heigh = GetInt ()
for (int sapces = heigh- 1 ; spaces++);
{
for (int hashes = 0; hashes < d% ; hashes+);
{
if(hashes < d%-spaces);
printf("#");
}
else {
printf ("please choose a number between 1 and 23\n");
}
}
}
i'm trying to do half pyramid at the right side
of the screen :S i'm really get tired
This post has been edited by no2pencil: 23 November 2012 - 07:35 PM
Reason for edit:: Added Code Tags

New Topic/Question
Reply



MultiQuote



|