C#.Net代码 [英] C#.Net code

查看:81
本文介绍了C#.Net代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为后续输出编写C#.Net代码

用户必须输入(1-7)之间的数字.如果特定用户输入的数字超出该范围,则应显示以下错误消息.

您的电话号码应介于(1-7)之间.请重试(用户只有3次尝试输入正确的电话号码)

否则,如果用户输入有效的数字,则应显示为这样.
1:一个
2:两个(表示输出既是数字又是单词).

I need to write a C#.Net code for following output

User has to enter a number between (1-7). if particular user enter a number outside from that range should display the following error message.

Your number should be between (1-7).Please try again (User has only 3 attempts to enter number correctly)

else if user enter a valid number it should display like this.
1: One
2: Two (This means the output is both numeric and word)

推荐答案

很高兴看到,询问者自己添加了标签:GimmeCode和homework ... :). .所以绝对不能投票!

好的,现在您需要做的第一件事就是努力编写您提到的内容.这里没有人会给您完整的代码.首先尝试,发布问题,或者如果您遇到困难,人们会很乐意为您提供帮助.
Nice to see, enquirer himself adding the tags: GimmeCode and homework... :) .. so no downvoting!

Ok, now first thing you need to do is make some effort in writing what you mentioned. Nobody will given you the full code here. Try first, post issues or if you get stuck - people will be more than happy to help you.


如上所述,您需要证明自己已经尝试过.无论是真正的功课,还是您从某些网站上接受了挑战(链接通常是对它的支持,对您来说都是一件好事),您必须证明自己至少了解足以尝试和遵循的基本知识.

专业人士或业余爱好者,您必须尝试.
As is mentioned, you need to show that you''ve tried. Regardless of whether it''s really homework or you''ve picked the challenge from some website (a link is normally a good thing to back that up) you have to show that you at least understand the basics enough to try and follow.

Professional or hobbyist, you have to try.


没有人会为您编写代码.
Noone is going to write code for you.


这篇关于C#.Net代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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