Skip to content

amr2007/Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Number Guessing Game in C

This is a simple terminal-based number guessing game written in the C programming language.

πŸ’‘ How it works:

  • The program generates a random number between 1 and 100.
  • You guess the number.
  • If your guess is too high, it says β€œLower number please!”
  • If your guess is too low, it says β€œHigher number please!”
  • It keeps track of the number of attempts.
  • When you guess it correctly, it shows a congratulatory message and how many guesses you took.

πŸ“‚ File Structure:

project-1/ β”œβ”€β”€ main.c // Your main C code β”œβ”€β”€ LICENSE // MIT License └── README.md // This file πŸ›  How to Compile and Run πŸ”§ On Linux / macOS: gcc main.c -o game ./game

πŸͺŸ On Windows (using GCC/MinGW): gcc main.c -o game.exe game.exe

πŸ“„ License This project is licensed under the MIT License β€” feel free to use, modify, and share it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages