ش | ی | د | س | چ | پ | ج |
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 C++ which receives several numbers from the user and sorts them out in a descending order according to bubble algorithm.
ادامه مطلب ...
برنامهای به زبان سی پلاس پلاس بنویسید که چند عدد را از کاربر دریافت و بر اساس الگوریتم حبابی آنها را به طور صعودی (از کوچک به بزرگ) مرتب کند.
Write a program in C++ which receives several numbers from the user and sorts them out in an ascending order according to bubble algorithm.
ادامه مطلب ...
برنامهای به زبان سی پلاس پلاس بنویسید که پیوسته عددی صحیح بین منفی یک تریلیون و مثبت یک تریلیون از کاربر دریافت کند و معادل آن را در زبان انگلیسی به حروف در خروجی نمایش دهد. اگر کاربر عددی خارج از بازهی تعریف شده وارد کند پیغام «خطا» نمایش داده میشود و در صورتی که او عدد صفر را وارد کند، برنامه پایان میپذیرد.
Write a program in C++ which receives an integer between minus one trillion and plus one trillion and converts it into the equivalent word displayed in letters. If the input is outside the defined interval, an error message is displayed and if the input equals zero, the program is terminated.
ادامه مطلب ...
به زبان سی پلاس پلاس، برنامهای بنویسید که شمارهی یک روز در سال را از کاربر دریافت کند و تاریخ معادل آن (شمارهی روز در ماه و شمارهی ماه در سال) را بیابد. در صورتی که عددی کوچکتر از 1 یا بزرگتر از 366 دریافت شود، خروج از برنامه رخ میدهد.
Write a program in C++ which receives the number of a day in the year and finds its corresponding date (the number of the day in the month and the number of the month in the year) in the Persian Solar Calendar. If the input is an integer less than 1 or greater than 366, the program is terminated.
ادامه مطلب ...
به زبان سی پلاس پلاس، برنامهای بنویسید که شمارهی روز در ماه و شمارهی ماه در سال خورشیدی ایران را از کاربر دریافت کند و مشخص سازد این تاریخ چندمین روز از سال است. در صورتی که کاربر تاریخ نادرستی را وارد کند، خروج از برنامه رخ دهد.
Write a program in C++ which receives the number of the day in the month and the number of the month in the year and determines the number of the day in the year according to the Persian Solar Calendar. Exit the program if a wrong date is entered.
ادامه مطلب ...