#scanf

2025-01-14

[Перевод] Крестики-нолики на printf

Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

habr.com/ru/articles/873554/

#printf #болото_тюринга #scanf

Steven Sandersonspsanderson@rstats.me
2024-10-18

Here is a second example from the book C Absolute Beginner Guide Third Edition.

I worked through it and this stuff I have to say is starting to make some sense.

#C #CProgramming #Programming #Coding #scanf #printf #stdio

This code is like having a chat with a computer about pizza! Here's how it works, explained super simply:

1. The computer asks how much a pizza costs and you tell it by typing in a price.
2. Then it asks what your favorite pizza topping is, like "pepperoni."
3. Next, it asks how many slices of pizza you can eat.
4. After that, it wants to know today's date (like month, day, and year).
5. Finally, it takes all your answers and tells you: "On this date, you can treat yourself to [X] slices of [your topping] pizza, and it will cost you [this much money]!"

It’s like a little pizza order conversation between you and the computer!
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2024-10-18

Here is a second example from the book C Absolute Beginner Guide Third Edition.

I worked through it and this stuff I have to say is starting to make some sense.

#C #CProgramming #Programming #Coding #scanf #printf #stdio

This code is like having a chat with a computer about pizza! Here's how it works, explained super simply:

1. The computer asks how much a pizza costs and you tell it by typing in a price.
2. Then it asks what your favorite pizza topping is, like "pepperoni."
3. Next, it asks how many slices of pizza you can eat.
4. After that, it wants to know today's date (like month, day, and year).
5. Finally, it takes all your answers and tells you: "On this date, you can treat yourself to [X] slices of [your topping] pizza, and it will cost you [this much money]!"

It’s like a little pizza order conversation between you and the computer!
Steven P. Sanderson II, MPHstevensanderson@mstdn.social
2024-10-16

🚀 Ready to level up your C programming skills?

Check out my latest post on mastering scanf()! Learn how to interact with users and handle input like a pro.

Dive in and share your thoughts!

#R #RStats #Programming #C #CodeNewbie #scanf

Read more here 📚 spsanderson.com/steveondata/po

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst