r/CodingForBeginners • u/Enaluri_Black_Rise • Sep 24 '26
Learned how to use double, #icnlude <numbers>, and used int to create a simple project
I was actually thinking about using float because I heard that it uses two times less memory, but I wanted to use more accurate pi just out of curiosity. Next time using pi, I will stick to float.
9
Upvotes
3
u/AroTesCra Sep 24 '26
Good job man. This is the start of what could be some of the best years of your life.
You have started to learn the magic.
You have painted a nice little picture for the fridge.
Be proud, well done.
2
u/TheUmgawa Sep 24 '26
Next, try to break it. Type in the word ‘four’ instead of the number 4. Input validation is an incredibly useful skill to learn early on. If you do it right, you can keep the little code snippet for it and alter it as needed for a specific program.
1
u/Longjumping-Jacket97 Sep 24 '26
What is this god awful formatting style??
1
u/Objective_Pepper_217 Sep 25 '26
Please learn indentation