如何编写Converse Prog。我应该写什么方法呢? [英] How Do I Write A Converse Prog. And What Are The Methods That Shall I Write It ?

查看:53
本文介绍了如何编写Converse Prog。我应该写什么方法呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

写一个编程。在卡瓦,要求用户输入否。并反过来打印出来,其反面必须与no相同。在交谈之前..

ex:

121当我交谈时,它将是相同的没有。



,如果不会;如果我输入一个号码。而它的反面将改变形式,前卫。应打印错误



ex:

123是321

write a prog. in kava that ask user to enter a no. and print it out conversely , which its converse must be the same form as the no. before conversing it ..
ex:
121 when i converse it , it will be the same no.

and if will not ; if i enter a no. and the converse of it will change the form , the prog. should print false

ex:
123 is 321

推荐答案

你尝试什么?如果是,你有什么问题?

想想以相反的顺序创建第二个字符串并将其与原始字符串进行比较。



Not一个可以使用的解决方案,但可能会显示一些关于问题背后的逻辑。
Did you try anything? If yes what is the Problem you have?
Think about create a second string in reverse order and compare it to the original.

Not a solution that can be used imediatelly, but maybe Shows a Little bit about the logic behind the "Problem".


这篇关于如何编写Converse Prog。我应该写什么方法呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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