ال practice بيبقى افضل انك تحاول انت تعمل برامج من وحى خيالك بدل ما تاخد exercise و تروح تنفذه .
بس ف انت عارف مجموعة أوامر اعمل بيها من 5 : 10 برامج و حاول تخلى البرامج فيها اضافات كتيرة او بتعمل مهمات كثيرة قد ما تقدر .
بعض ال hints :
إذا كان عدد القطع 1 البرنامج يطبع discount = 10%
إذا كان عدد القطع 2 البرنامج يطبع discount = 20%
إذا كان عدد القطع 3 البرنامج يطبع discount = 30%
إذا كان عدد القطع 4 البرنامج يطبع discount = 40%
إذا كان 5 قطع أو أكثر البرنامج يطبع discount = 50%
The best way to practice is to try to do programs from your imagination rather than solving ready-made exercises.
Now you've learned a bunch of commands, try to use them to make different programs and try to make programs with brochure additions and do multiple tasks.
Some of the hints:
If the number of pieces 1 software prints discount = 10%
If the number of pieces 2 software prints discount = 20%
If the number of pieces 3 software prints discount = 30%
If the number of pieces 4 software prints discount = 40%
If 5 pieces or more software prints discount = 50%
برنامج يقوم بطباعة مثلث على هيئة:
Foad finished his Thanway Amma exams, and he is looking for a highly ranked university to study Computer Science degree. Then, He started to do a college list with the admission criteria for each college.
After long research, he found his dream university in the UK, but he got frustrated by his marks. In fact, his marks may decrease the chance of getting into his dream university. The admission criteria of the university in terms of school subjects
He must obtain more than or equal 65 in Math ( m ), more than or equal 55 in physics ( p ), and more than or equal 50 in Chemistry ( c ). All must be with a total of more than or equal to 190, or to obtain more than or equal 140 in Math and Physics. Can you solve foad's problem, and tell him if he can be admitted or not into his dream university.
The first line of the input contains one integer m (m ≥ 0 ), the second line is one integer p (p ≥ 0), and the third is c (c ≥ 0).
Print if Foad will pass the admission phase at the university or not.