c++ 输入与输出

#include<iostream>
using namespace std;

int main()
{
    int x;
    float y;
    cout<<"Please input an int number:"<<endl;
    cin>>x;
    cout<<"The int number is x= "<<x<<endl;
    cout<<"Please input a float number:"<<endl;
    cin>>y;
    cout<<"The float number is y= "<<y<<endl;
    return 0;
}
posted @ 2022-08-19 22:48  luoganttcc  阅读(5)  评论(0)    收藏  举报