ش | ی | د | س | چ | پ | ج |
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 |
به زبان پایتون، برنامهای بنویسید که پیوسته عددی طبیعی بزرگتر از 1 دریافت و آشکار سازد که آن عدد، اول است یا مرکب. در صورتی که کاربر یک عدد صحیح کوچکتر از 2 وارد نماید، خروج از برنامه رخ میدهد.
Write a program in Python which receives a natural number greater than 1 as input and determines if the number is prime or composite. If the user enters an integer less than 2, the program is terminated.
ادامه مطلب ...
به زبان سی پلاس پلاس، برنامهای بنویسید که پیوسته عددی طبیعی بزرگتر از 1 دریافت و آشکار سازد که آن عدد، اول است یا مرکب. در صورتی که کاربر یک عدد صحیح کوچکتر از 2 وارد نماید، خروج از برنامه رخ میدهد.
Write a program in C++ which receives a natural number greater than 1 as input and determines if the number is prime or composite. If the user enters an integer less than 2, the program is terminated.
ادامه مطلب ...