PRF192_-_FEB5_-_FA_2023_1298.webp
G

PRF192_-_FEB5_-_FA_2023_1298.webp

(Choose 1 answer)
Exit 38
What would happen if the user types in number 3 and presses Enter when running this progr
main() {
int x = 5:
char c:
printf("Enter x = ");
scanf("%d", &x);
printf("Calculate square? (Y/N): ");
c = getchar();
if (c == 'Y' || c == 'y')
printf("sqr = %d", x*x);
}
A. sqr = 9
B. sqr = 25
C. The program exits without printing the square
D. It depends on whether the user enters 'Y' or not, being asked "calculate square?"

Thông tin

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

Image metadata

Filename
PRF192_-_FEB5_-_FA_2023_1298.webp
File size
54 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom