英语翻译Your task is to find the sum of all integer numbers lyin

北贝2022-10-04 11:39:542条回答

英语翻译
Your task is to find the sum of all integer numbers lying between 1 and N inclusive.
Input
The input consists of a single integer N that is not greater than 10000 by it's absolute value.
Output
Write to the output file a single integer number that is the sum of all integer numbers lying between 1 and N inclusive

已提交,审核后显示!提交回复

共2条回复
残鱼 共回答了15个问题 | 采纳率86.7%
你的任务是要得出所有1到N之间整数的和.(包括1和N)
输入
输入由单整数N组成,N的绝对值不大于10000.
输出
在输出文件中写出表示所有1到n之间整数之和的单整数.
1年前
77东东 共回答了6个问题 | 采纳率
你的任务是计算出从1到N的所有整数的和。
输入
输入一个简单的不超过10000的整数N
输出
输出包括1到N的所有整数的和
1年前

相关推荐

大家在问