PRF192_-_PE_-_SU_2023_281.webp
T

PRF192_-_PE_-_SU_2023_281.webp

  • Media owner Tsuyu89
  • Ngày thêm
Question 6:
(1 mark, file to be edited: Q6.c)
The program allows users to enter up to 100 characters from the keyboard.
Find and print the sum of the values of numeric characters (0-9) that are even numbers.
Below is an example:
Enter s = "He3llo2 everyone4!"
He311o2 everyone4!
OUTPUT:
6
Press any key to continue
Question 7:
(1 mark, file to be edited: Q7.c)
The program allows the user to enter the values of the elements of the square matrix as integers with the same number of rows and columns and input from the keyboard.
Print the element on the main diagonal with the maximum value.
Below is an example:
When 'rows' = 3; array = {
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2023_281.webp
File size
48.2 KB
Dimensions
1536px x 793px

Share this media

Back
Bên trên Bottom