MLN131_-_SU2023_-_SU23_-_FEKTS_43.webp
Daviddoo

MLN131_-_SU2023_-_SU23_-_FEKTS_43.webp

  • Media owner Daviddoo
  • Ngày thêm
Question 8:
(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an integer array of 'n' elements from the keyboard.
The program swaps the places of the first largest and smallest even numbers with each other.
Below is an example:
Enter n = 7; array = {5, 2, 8, 0, 9, 6, 20)
7 528096 20
OUTPUT:
5 2 8 20 960
Press any key to continue
VERFLOWIGOM
Question 9:
(1 mark, file to be edited: Q9.c)
Your program allows the user to enter a string 's' with a maximum length of 100 characters.
The system converts the two firstletters of each word to uppercase.
Print out the string 's' after the conversion.
COVERFLOWIGOMM
Below aretwoexamples of how the program will run:
FUCVERFLOW.COM
Zoom
+ 100%
Close

Thông tin

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

Share this media

Back
Bên trên Bottom