PRF192_-_SP_2025_-_DN_-_PE_3480.webp
G

PRF192_-_SP_2025_-_DN_-_PE_3480.webp

Kizspy.me
Question 6:
(1 mark, file to be edited: Q6.c)
Users are required to enter an integer number to define rows of the half pyramid of alphabets
(rows > 0).
4 of 4
Paper No: 7
Program prints out the half pyramid of alphabets.
Below is an example of how the program will run.
For example, enter 6 for rows:
6
OUTPUT:
A B C D E F
GHIJK
LMNO
PQR
ST
U
Press any key to continue...
Zoom
Question 7:
(1 mark, file to be edited: Q7.c)
Users are required to enter two integer numbers: 'a', 'b' and 'c' using the keyboard (STDIN).
The C program finds the largest number among three integers using a dedicated function.
-The function maxOfThree (int a, int b, int c) is used to determine the maximum
of the three integers.
- In the main() function, the program prompts the user to input three integers.
-The maxOfThree () function is called to find the largest number, and the result is displayed on
+100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom