- 博客(3)
- 收藏
- 关注
原创 用函数求两个数的最大值。(2020_10_20)
题目 用函数求两个数的最大值 输入格式 例:46 87 输出格式 例:max = 87 代码 #include<stdio.h> #include<windows.h> int main() { int i, j; scanf_s("%d %d",&i,&j); printf("max = %d", Compare(i, j)); system("pause"); return 0; } int Compare(int
2020-10-20 21:55:37
888
原创 多个字符从两端移动,向中间汇聚,实现在一行内的改变(不换行).
一个有趣的代码,题意大概是编写一个程序,可以实现多个字符从两端移动,向中间汇聚的功能。 如将一行####################改为 ##Welcome to 优快云!##(可以自行) 然后自己写了一下,代码如下: #include<stdio.h> #include<windows.h> int main() { char arr1[] = "##Wlecome to 优快云!##"; char arr2[] =...
2020-10-15 01:35:36
192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅