Untitled diff
3 removals
19 lines
3 additions
19 lines
#include <stdio.h>
#include <stdio.h>
#include <cs50.h>
#include "cs50.h"
int main(void)
int main(void)
{
{
int stepHeight;
int stepHeight;
do
do
{
{
printf("How high are your steps?\t");
printf("How high are your steps?\t");
stepHeight = GetInt();
stepHeight = GetInt();
}while (stepHeight < 0 || stepHeight > 23);
}while (stepHeight < 0 || stepHeight > 23);
return(stepHeight);
for (int i = 0; i == stepHeight; i++)
for (int i = 0; i < stepHeight; i++)
{
{
printf("hi\n");
printf("hi\n");
}
}
return 0;
}
}