📅  最后修改于: 2023-12-03 15:29:44.360000             🧑  作者: Mango
给定三个整数a,b,c,计算表达式a * b + c的值,并返回运算结果。
共一行,包括三个整数a,b和c(-10000<=a,b,c<=10000)。
一个整数,代表表达式a * b + c的值。
1 2 3
5
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
printf("%d", a * b + c);
return 0;
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
System.out.println(a * b + c);
sc.close();
}
}
a, b, c = map(int, input().split())
print(a * b + c)
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << a * b + c;
return 0;
}
package main
import "fmt"
func main() {
var a, b, c int
fmt.Scanf("%d%d%d", &a, &b, &c)
fmt.Printf("%d", a*b+c)
}