#include <iostream> using namespace std; int main() { int age; cin>>age; cout<<"your months of age:"<<age*12<<endl; return 0; }
#include<iostream> using namespace std; int main() { int age; cin>>age; cout<<"总共有"<<12*age<<endl; return 0; }
#include <iostream> int main() { int nAge; std::cout << "Enter your age: "; std::cin >> nAge; std::cout << "您一共度过了" << nAge * 12 << " 个月" << std::endl; }
#include <iostream> using namespace std; int main(void) { int year; cout<<"Enter your age:"; cin>>year; cout<<"世界上存在"<<year*12<<"个月了"<<endl; return 0; }
#include<iostream> using namespace std; int main() { int age; cout<<"Enter your age:"; cin>>age; cout<<"You are "<<12*age<<" months old."; return 0; }
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题