ال practice بيبقى افضل انك تحاول انت تعمل برامج من وحى خيالك بدل ما تاخد exercise و تروح تنفذه .
بس ف انت عارف مجموعة أوامر اعمل بيها من 5 : 10 برامج و حاول تخلى البرامج فيها اضافات كتيرة او بتعمل مهمات كثيرة قد ما تقدر .
*Practicing is the best when you try to write a program out of your own imagination, instead of just executing an exercise as it is. *So, use your knowledge of the few functions and orders you have to create five to ten programs, and try to make those programs have as many additions and functions as you can.
1. A program that asks a mother to enter the number of her kids; if she has more than three kids, it prints “You have a lot of kids!”; if she has two kids, it prints “You have 2 kids!”; if she only has 1 kid, it asks about the gender by prompting her to choose from “[B/G]?”; if she entered “B” the program prints “You have a little Prince!”, and if she entered “G” the program prints “You have a little Princess!”.
2. A program that asks the user to enter a number representing the number of lines to be printed, then prints the “*” repeated as many times as the line number. Example: First line: “*” - Second line: “**” - Third line: “***” - …etc. 3. A program that asks the user to enter a number representing the amount of lines to be printed, then prints a number in each line, starting from “1” all the way up to the lines number. Example: First line: “1” - Second line: “2” - Third line: “3” - …etc.