题解 1668: printf基础练习2

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

printf基础练习2 (C语言代码)

摘要:解题思路:使用转换语句注意事项:八进制和十六进制有前缀,如果使用%o,%d,%x,是不会带有前缀的。参考代码:#inlcude <stdio.h>int main(){    int a,b;    ……

printf基础练习2 (C语言代码)

摘要:解题思路:输入一个整数,不超过10^9注意事项:输出这个整数的八进制、十进制和十六进制,三个数字用空格分开,最后一个有换行不要忘记八进制和十六进制的前缀哦~参考代码:#include<stdio.h>……

题解 1668: printf基础练习2

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main()  {     int num;     // 读取输入整数     scanf("%d", &n……

printf基础练习2 (C语言代码)

摘要:解题思路:注意事项:注意前缀。参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    printf("%#o %d %#x\……

1668: printf基础练习2

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdio.h> using namespace std; int main() {     long ……

printf基础练习2 (C语言代码)

摘要:解题思路:获取输入数字,转换完成后输出到屏幕。注意事项:转换的数字需要加上前缀。参考代码:#include<stdio.h> {     int a;     scanf("%d", &a); ……