使用cout和cin,从键盘接收两个字符,并对其进行输出。
#include<iostream>
using namespace std;
int main(){
int a,b;
cout<<"Please input a number: "<<endl;
cin>>a>>b;
cout<<"Got it! The number is "<<a<<" and "<<b<<"!"<<endl<<"Thank you for your attention!"<<endl;
return 0;
}