PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp
Hanami81

PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp

  • Media owner Hanami81
  • Ngày thêm
Question 5:
(1 mark, file to be edited: Q5.c)
Your program allows users to enter an array of 'n' integers, where 'n' is entered by the user.
The user is asked to continue entering values for two integers 'v' and 'p'. The program then inserts 'v' at index 'p' in the array.
Print the elements of the array to the screen
Below is an example:
n = 4; array = (9, 0, 1, 8); v = 7; p = 2
4
9018
72
OUTPUT:
90718
Press any key to continue
Question 6:
(1 mark, file to be edited: Q6.c)
Your program allows users to enter a string "s" with maximum length of 100 characters.
Zoom
100%

Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp
File size
157.6 KB
Dimensions
1920px x 972px

Share this media

Back
Bên trên Bottom