All pastes #382685 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-05 20:59 UTC
rendered paste body
1.#include <stdio.h>
2.#include <stdlib.h>
3.
4.intGame (int in, int num);
5.
6.int main()
7.{
8. printf("I have a number between 1 and 1000\nCan you guess my number?\nPlease type your first guess\n"
9. 
10. intGame (int in, int num);
11. 
12. return 0;
13. }
14. intGame (int in, int num);
15. {
16.  scanf("%d", &in);
17.  num = 1+(rand ( ) % 1000)
18.  if (in=num);
19.  {
20.   if(in>num);
21.    {
22.     printf("Too low Try again\n");
23.     scanf("%d", &in);
24.    }
25.   else if(in<num);
26.    {
27.     printf(Too high. Try again\n");
28.     scanf("%d", &in);
29.    }
30.  }
31.  else printf("Excellent! You guessed the number!\nWould you like to play again (y or no)?\n");