PRF192_-_PE_-_SU_2024_-_s_6_2163.webp
T

PRF192_-_PE_-_SU_2024_-_s_6_2163.webp

Enter m = 5, n = 10
5 10
OUTPUT:
45
Press any key to continue
Question 3:
(1 mark, file to be edited: Q3.c)
The program asks the user to enter two integers m and n (m<n) from the keyboard.
Count and print the number of even numbers and the number of odd numbers in the range from m to n.
The number of even numbers is printed first, and the number of odd numbers is printed later.
Here is an example of how the program will run:
Enter: m = 5, n = 25
3 of 3
Paper No: 6
5 25
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2024_-_s_6_2163.webp
File size
142.6 KB
Dimensions
1920px x 1000px

Share this media

Back
Bên trên Bottom