1.写出下列程序段输出结果。
int x = 10;
char w = 'y';
float z = 5.1234;
printf("\nFirst\nExample\n:");
printf("%5d\n, w is %c\n", x, w);
printf("\nz is %8.2f\n", z);
- 编写程序实现提示用户输入三个整数,然后按每行一个数据的格式将其输出,正序和逆序各输出一次。程序的运行形势如下所示。
please enter three numbers: 15 35 72
your numbers forward:
15
35
72
your numbers reversed:
72
35
15