Untitled diff

생성일 비교 결과 만료 없음
4 삭제
19
4 추가
19
#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;
}
}