给定3<span class="MathJax" id="MathJax-Element-1-Frame" tabindex="0" data-mathml="3" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">
#include<iostream>
using namespace std;
int main(){
int a;
int b;
int c;
int d;
cin>>a>>b>>c;
d=(a+b)*c;
cout<<d;
}
输入仅一行,包括三个整数<span class="MathJax" id="MathJax-Element-4-Frame" tabindex="0" data-mathml="a、b、c" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">a、b、c
数与数之间以一个空格分开。<span class="MathJax" id="MathJax-Element-5-Frame" tabindex="0" data-mathml="(-10,000<a,b,c<10,000)" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">(-10,000<a,b,c<10,000)
输出一行,即表达式的值。
欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) | Powered by Discuz! X3.3 |