ش | ی | د | س | چ | پ | ج |
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.
ادامه مطلب ...
به زبان پایتون، برنامهای بنویسید که پیوسته صورت و مخرج دو کسر را دریافت کند و حاصلجمع آنها را به صورت کسر نشان دهد. در صورتی که هر کدام از مخرجها برابر با صفر باشد خروج از برنامه رخ میدهد.
Write a program in Python which constantly receives the numerator and the denominator of two fractions as input and computes the sum of the two numbers as a fraction. If either of the denominators equals zero, exit the program.
ادامه مطلب ...
به زبان سی پلاس پلاس، برنامهای بنویسید که پیوسته صورت و مخرج دو کسر را دریافت کند و حاصلجمع آنها را به صورت کسر نشان دهد. در صورتی که هر کدام از مخرجها برابر با صفر باشد خروج از برنامه رخ میدهد.
Write a program in C++ which constantly receives the numerator and the denominator of two fractions as input and computes the sum of the two numbers as a fraction. If either of the denominators equals zero, exit the program.
ادامه مطلب ...
به زبان پایتون، برنامهای بنویسید که پیوسته دو عدد طبیعی را از کاربر دریافت و ک.م.م. (کوچکترین مضرب مشترک) آنها را محاسبه کند. همچنین اگر کاربر عددی کوچکتر از 1 را وارد کند، خروج از برنامه رخ دهد.
Write a program in Python which receives two natural numbers as input and calculates their LCM (least common multiple). If either of the two numbers is less than 1, exit the program.
ادامه مطلب ...