CPP_Basics_Syntax/第一讲 变量、输入输出、表达式与顺序语句/609.cpp

12 lines
187 B
C++
Raw Permalink Normal View History

2023-03-23 23:37:15 +08:00
#include <cstdio>
using namespace std;
int main()
{
int a, b;
double c;
scanf("%d%d%lf", &a, &b, &c);
printf("NUMBER = %d\nSALARY = U$ %.2lf", a, b * c);
return 0;
}