递归程序 [英] Recursion program

查看:79
本文介绍了递归程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用递归来反转数字的程序。

例如:如果输入是123435,则输出为534321.

解决方案

本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/计划并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。


请阅读< a href =http://www.thescripts.com/forum/faq.php?faq=posting_guidelines\"target =_ blank>发布指南,特别是课程作业发布指南


然后当你准备发布一个新的这个帖子中的问题。


MODERATOR


yow thry this function



我需要使用递归来反转数字的程序。

例如:如果输入是123435,则输出为534321.



试试这个:


i认为它会给你想要的东西....

一切都很好......


Hi , I need the program of reversing a number using recursion.
Ex: if input is 123435 , output to be 534321.

解决方案

The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR


yow thry this function


Hi , I need the program of reversing a number using recursion.
Ex: if input is 123435 , output to be 534321.

try this:

i think it will give what you want....
all the best......


这篇关于递归程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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