用C语言将int输入和输出空格 [英] spaces int input and output in c language

查看:180
本文介绍了用C语言将int输入和输出空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能帮助我如何用c语言编写一个程序,接受123输入并显示1 2 3的输出.任何帮助将不胜感激

can any one help me how to make a program in c language that accepts an input of 123 and displays an output of 1 2 3. any help would be very much appreciated

推荐答案

家庭作业,对不对?我不会给您代码,但会给您一个方向.

您想使用sprintf函数进行研究.
Homework, right? I won''t give you code, but I will give you a direction.

You want to look into using the sprintf function.


这篇关于用C语言将int输入和输出空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆