Skip to content

Commit

Permalink
2.29
Browse files Browse the repository at this point in the history
  • Loading branch information
TGSpock123 committed Feb 29, 2024
1 parent 5d36309 commit c026804
Show file tree
Hide file tree
Showing 62 changed files with 3,694 additions and 1,858 deletions.
22 changes: 22 additions & 0 deletions 12/12.14.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main (void)
{
srand ((unsigned int) time (0));
printf ("I've guessed a number from 1 to 10. guess what is it. \n");
for (int p; ; )
{
scanf ("%d", &p);
if (p != (rand() % 10) + 1)
{
printf ("not that one, guess again. \n");
}else
{
break;
}
}
printf ("thank you for playing. \n");

return 0;
}
Empty file added 12/12.15.c
Empty file.
Empty file added 12/12.16.c
Empty file.
Loading

0 comments on commit c026804

Please sign in to comment.