已知一位小朋友的电影票价是 元,计算 位小朋友的总票价是多少?
输入 。
人数和电影票总价,中间用一个空格隔开。
2
2 20
【参考代码 1 C++】
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; cout << x << " " << 10 * x; return 0; }
【参考代码 2 C】
#include<bits/stdc++.h> using namespace std; int main(){ int x; scanf("%d", &x); printf("%d %d", x, 10 * x); return 0; }