PRF192_-_FA_2024_-_Block_5_-_PE_-_s_2_3218.webp
BichPhuong97

PRF192_-_FA_2024_-_Block_5_-_PE_-_s_2_3218.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 years that are not 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:
2010 2021 2022
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:
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom