PRF192_-_FA_2024_-_Block_5_-_PE_-_s_5_3220.webp
T

PRF192_-_FA_2024_-_Block_5_-_PE_-_s_5_3220.webp

(1 mark, file to be edited: Q2.c)
Users are required to enter an integer array of five elements containing value of year.
Print out to the screen the leap years. There, a leap year is a year that is divisible by 4 and not by 100; or not divisible by 400.
Below is an example of how the program will run:
2010 2012 2016 2021 2022
OUTPUT:
2012 2016
Press any key to continue
Question 3:
(1 mark, file to be edited: Q3.c)
Your program allows users to enter an integer array of 'n' elements entered from the keyboard.
The system sorts the entered numbers in descending order.
Print out the odd numbers to the screen.
Below is an example of how the program will run:
For example, enter 5 for 'n' and elements in the array include: 3, 10, 7, 6, 5
5
3 10 7 6 5
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Takuma901
Ngày thêm
Lượt xem
5,126
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_FA_2024_-_Block_5_-_PE_-_s_5_3220.webp
File size
159.1 KB
Dimensions
1920px x 813px

Share this media

Back
Bên trên Bottom