可以只用printf-(投机取巧)字符菱形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){charc;&n…… 题解列表 2025年02月14日 1 点赞 0 评论 480 浏览 评分:0.0
题解 2750: 字符菱形(循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch; scanf("…… 题解列表 2025年01月24日 1 点赞 0 评论 364 浏览 评分:0.0
正经分解,非暴力解题 摘要:解题思路:注意事项:参考代码://解决方式还有其他更加好想的,这里只是讲一讲我的逻辑分析过程/*为了好看我把空格当成0 00*0********0***00* 需要两个for循环,因为如果是一个for…… 题解列表 2024年12月25日 0 点赞 0 评论 334 浏览 评分:0.0
字符菱形的c语言解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf( " %c \n %c%c%…… 题解列表 2024年12月16日 0 点赞 0 评论 341 浏览 评分:0.0
2750:字符菱形(利用双循环写) 摘要:解题思路:由题可知,打印的菱形图案可以和空格构成一个5x5的矩阵,所以可以因此知晓打印字符的有(1,3)、(2,3)、(3,3)、(4,3)、(5,3)、(3,1)、(3,2)、(3,3)、(3,4)…… 题解列表 2024年11月01日 1 点赞 0 评论 575 浏览 评分:0.0
用c语言输出字符菱形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf(" %c",a); printf("\n"); …… 题解列表 2024年04月26日 0 点赞 0 评论 442 浏览 评分:0.0
2750: 字符菱形 (for循环) 摘要:```c #include int main() { char a; int i,j; scanf("%c", &a); for(i=0;i…… 题解列表 2024年03月23日 0 点赞 1 评论 418 浏览 评分:0.0
字符菱形利用for循环写 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年03月08日 0 点赞 1 评论 352 浏览 评分:0.0
f-string编写题解 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:a=input()for i in range(3): print(' '*(2-i), end='') print(f…… 题解列表 2024年02月26日 1 点赞 0 评论 287 浏览 评分:0.0
题目 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h> using namespace std; int main() { char c;…… 题解列表 2024年02月28日 0 点赞 0 评论 288 浏览 评分:0.0