taught myself about programming back in elementary school. My first programs were on the Apple II, but eventually, I learned C by reading books and practicing. And the best way to practice programming is to write sample programs that help exercise your new knowledge.

One program I like to write in a new language is a simple “guess the number” game. The computer picks a random number from 1 to 100, and you have to figure it out by making guesses. In another article, I showed how to write this “Guess the number” game in Bash, and my fellow Opensource.com authors have written articles about how to write it in JavaJulia, and other computer languages.

#c #game #simple

Learn C by writing a simple game
1.15 GEEK