一直在开发一个假设循环并显示 13 次的程序。这是我的代码
{
var count;
var user_Input;
var output_msg;
var cel;
count = 0;
do
{
user_Input = get_integer("Temperature conversion","");
count = count + 1;
cel = user_Input * 9/5 +32;
user_Input = user_Input +10;
output_msg =(string(count) + "Celsius" + string(user_Input) + " = Farenheit " + string(cel));
show_message(output_msg);
}
until (count == 13)
}
它的作用是每次我按回车键时显示循环,而不是一次显示所有 13 个,如果我输入 10,例如每次循环它假设从最后一个循环添加 10。
例如。1. 摄氏度 10 = 华氏度(在此处回答)
...... 2. 摄氏度 20 = 华氏度(在此处回答)
......13。Celsuis 130 = Farenheit ""
如果有人可以带我走过并帮助我,那就太好了