初学者程序员问题 [英] Beginner Programmer Question

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

问题描述

我正在做大量的阅读并试图自学如何编程。

我无法弄清楚如何制作编写一个持续不断的程序

读取来自用户的数字并将它们加在一起直到总和

达到100。这项工作。如果有人能告诉我正确的代码,那么我可以从中学到很多东西。谢谢

I am doing alot of reading and trying to teach myself how to program.
I can not figure out how to make "Write a program that continually
reads in numbers from the user and adds them together until the sum
reaches 100." this work. If someone could show me the correct code so i
can learn from that it would be much appreciated. Thanks

推荐答案

ky ** *****@gmail.com 写道:
我正在做很多阅读,并试图自学如何编程。
我无法弄清楚如何制作编写一个程序,不断地从用户那里读取数字并将它们加在一起,直到总和达到100。这项工作。如果有人能告诉我正确的代码,那么我可以从中学习,我将非常感激。谢谢
I am doing alot of reading and trying to teach myself how to program.
I can not figure out how to make "Write a program that continually
reads in numbers from the user and adds them together until the sum
reaches 100." this work. If someone could show me the correct code so i
can learn from that it would be much appreciated. Thanks



这不是你的作业吗?

你为什么不弄明白?

你有什么尝试了?


Claudio


Isn''t it your homework?
Why can''t you figure it out?
What have you tried?

Claudio




Claudio Grondi写道:

Claudio Grondi wrote:
ky*******@gmail.com 写道:
我在做很多阅读和试图教我自己如何编程。
我无法弄清楚如何制作编写一个程序,不断地从用户读取数字并将它们加在一起直到总和
达到100.这项工作。如果有人能告诉我正确的代码,那么我可以从中学习,我将非常感激。谢谢
I am doing alot of reading and trying to teach myself how to program.
I can not figure out how to make "Write a program that continually
reads in numbers from the user and adds them together until the sum
reaches 100." this work. If someone could show me the correct code so i
can learn from that it would be much appreciated. Thanks


这不是你的作业吗?
为什么你不能理解它?
你有什么尝试?

Claudio


Isn''t it your homework?
Why can''t you figure it out?
What have you tried?

Claudio




我正在做很多阅读,问题没有得到答案。

我不明白如何让它连续输入数字并添加

所有这些一起



I am doing alot of reading, and the problem didnt come with an answer.
I dont understand how to get it to continually input numbers and add
all those together



ky ******* @ gmail.com 写道:
Claudio Grondi写道:
Claudio Grondi wrote:
ky ******* @ gmail.com 写道:
我正在做很多阅读和尝试教我自己如何编程。
我无法弄清楚如何制作编写一个程序,不断地从用户读取数字并将它们加在一起,直到总和达到100。 "这项工作。如果有人能告诉我正确的代码,那么我可以从中学习,我将非常感激。谢谢
I am doing alot of reading and trying to teach myself how to program.
I can not figure out how to make "Write a program that continually
reads in numbers from the user and adds them together until the sum
reaches 100." this work. If someone could show me the correct code so i
can learn from that it would be much appreciated. Thanks


这不是你的作业吗?
为什么你不能理解它?
你有什么尝试?

Claudio


Isn''t it your homework?
Why can''t you figure it out?
What have you tried?

Claudio



我正在做很多阅读,问题没有得到答案。
我不明白如何让它不断输入数字并添加
所有这些一起



I am doing alot of reading, and the problem didnt come with an answer.
I dont understand how to get it to continually input numbers and add
all those together




#添加最多100个节目


#你加起来的数字是多少?

bigone = 100

number =输入(第一个数字是什么?)

number2 =输入("第二个数字是什么? ")

nu3 =数字+数字2

而nu3< bigone:

打印(还没有,下一个号码请)

打印终于有了!

$ b $这就是我认为的可能是......但是在前两个数字之后它只是在屏幕上不断滚动,最后还是在那里



#Add up to 100 program

#What number are you adding up to?
bigone = 100

number = input("Whats the first number?")
number2 = input ("Whats the second number?")
nu3 = number+number2
while nu3 < bigone:
print ("Not there yet, next number please")
print "Finally there!"

thats what i thought maybe it was...but after the first two numbers it
just continually scrolls on the screen with finally there


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

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