This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

20 lines
373 B
C

#include <stdio.h>
int main()
{
int num;
int hold = 1;
printf("Enter an integer from 1 to 10:\n");
scanf("%d", &num);
if (num >= 1 && num <= 10)
{
while (hold <= num)
{
printf("Round %d...\n", hold);
hold++;
}
}
else
{
printf("The number you entered is not between 1-10.");
}
}