//getinfo.cpp--input and output
#include <iostream>
int main()
{
using namespace std;
int carrots;
cout << "how many carrots do you have?" << endl;
cin >> carrots;
cout << "here are tow more.";
carrots = carrots + 2;
cout << "now you have" << carrots << "carrots." << endl;
return 0;
}
gentifo.cpp
最新推荐文章于 2024-07-23 22:52:19 发布