PRF192_-_FA_2024_-_Block_5_-_PE_-_s_3_3219.webp
quanghuy2002

PRF192_-_FA_2024_-_Block_5_-_PE_-_s_3_3219.webp

Press any key to continue
Question 2:
(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.
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
quanghuy2002
Ngày thêm
Lượt xem
1,999
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_3_3219.webp
File size
151 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom