自定义函数之数字分离-c语言 摘要:解题思路:1.首先要输入一个四位数;2.在单独获得各个位上的数据,最后输出时用空格隔开即可注意事项:参考代码:#include<stdio.h>int main(){ int n; s…… 题解列表 2021年12月13日 0 点赞 0 评论 394 浏览 评分:0.0
自定义函数分离字符 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>fen(char a[4…… 题解列表 2021年12月19日 0 点赞 0 评论 193 浏览 评分:0.0
%和/号解决问题 摘要:解题思路:活用%符号和/号,来进行将一个数字的各个位数抽出来;注意事项:注意记清楚两个符号中,除号对于c语言整型类型的特别之处,就是可以消去低位,相当于将十进制的数向右逻辑移动,丢掉最低位,这样每个位…… 题解列表 2021年12月25日 0 点赞 0 评论 144 浏览 评分:0.0
随便写写,看看就行 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void shuchu(char *p){ for(;*p!='\0';p++) printf("%c ",*p);}…… 题解列表 2021年12月27日 0 点赞 0 评论 171 浏览 评分:0.0
C++代码 for循环 求余 整除 数组保存每位数值 逆序输出 摘要:解题思路:for循环 求余 整除 数组保存每位数值 逆序输出注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2021年12月28日 0 点赞 0 评论 571 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(Python代码) 摘要:解题思路:注意事项:参考代码:sentence = input()print(sentence.replace(""," ").strip())…… 题解列表 2022年01月07日 0 点赞 0 评论 220 浏览 评分:0.0
自定义函数之数字分离 摘要:注意:scanf_s("%c", &a[i],1)表示最多读取1-1个字符; 同理scanf_s("%c", &a[i],4)表示最多读取4-1个字符。 ```c #include …… 题解列表 2022年01月16日 0 点赞 0 评论 206 浏览 评分:0.0
[编程入门]自定义函数之数字分离 摘要:解题思路:循环输入的字符串,如果不是最后一个字符,就输出字符+空格,最后一个字符,只输出它本身注意事项:无参考代码:#include<stdio.h>#include<string.h>int i,x…… 题解列表 2022年01月18日 0 点赞 0 评论 197 浏览 评分:0.0
【露离】一行代码 摘要:解题思路:注意事项:参考代码:def main(): print(' '.join(list(input())))main()…… 题解列表 2022年02月05日 0 点赞 0 评论 165 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fun(a): b = "" for i in a: b += i b += ' ' print(b…… 题解列表 2022年02月21日 0 点赞 0 评论 178 浏览 评分:0.0