Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 442 Bytes

Lab01.md

File metadata and controls

20 lines (18 loc) · 442 Bytes
  • Create a file Lab01.go
  • Let's implement a guessing game
  • Your code will generate a random number between 1 and 100
  • User plays the game till she guesses it correct
  • Say the number is 77
Enter a number between 1 and 100
75
Aim Higher
90
Aim Lower
80
Aim Lower
77
You've got it in 4 attempts
  • Use Scanf function for reading input from console
  • Use rand package and the Intn function to generate a random number