ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
به زبان برنامهنویسی پایتون، برنامهای بنویسید که پیوسته سه ریشهی حقیقی را از کاربر دریافت میکند و آنگاه معادلهی درجه سوم آنها را نمایش میدهد. اگر هر سه ریشه صفر باشند، خروج از برنامه رخ میدهد.
Write a program in Python which constantly receives the three real roots of a cubic equation from the user as input and then displays the relevant equation. If all the three roots equal zero, the program is terminated.
ادامه مطلب ...