//求a和b中的较大者
#include <stdafx.h>
#include <iostream>
using namespace std;
void main()
{
int age =0;
cout <<"请输入您的年龄:";
cin >>age;
cout<<"您的年龄是:"<<age<<endl;
}
VC++练习之编写一个C++程序,输入你的年龄,然后在屏幕上输出年龄
最新推荐文章于 2022-10-04 21:49:02 发布
//求a和b中的较大者
#include <stdafx.h>
#include <iostream>
using namespace std;
void main()
{
int age =0;
cout <<"请输入您的年龄:";
cin >>age;
cout<<"您的年龄是:"<<age<<endl;
}