PRF192_-_SP_2024_-_Block_5_-_FE_1919.webp
Ngọc Huyền1

PRF192_-_SP_2024_-_Block_5_-_FE_1919.webp

(Choose 1 answer)
#include <stdlib.h>#include <stdio.h>
int main () {
int i, n, a = 10, b = 20;for (i = 0; i < 10; i++) { n = a + rand() % (b + 1-a);printf("%d", n);}
return 0;}
Choose one right statement about the output of the above program?
A. The above program prints 10 pseudo-random integers between 10 and 20 inclusively.
B. The above program prints 10 pseudo-random integers between 11 and 19 inclusively.
C. The above program prints 10 pseudo-random integers between 9 and 21 inclusively.


Q: 11

Thông tin

Category
PRF192
Thêm bởi
Ngọc Huyền1
Ngày thêm
Lượt xem
2,491
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_SP_2024_-_Block_5_-_FE_1919.webp
File size
221.8 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom