#include<iostream>
using namespace std;
int main()
{
int x, y;
cout<<"請輸入x的值:";
cin>>x;
cout<<"請輸入y的值:";
cin>>y;
cout<<"x的值"<<x<<endl;
cout<<"x的值"<<x<<endl;
system("pause");
return 0;
}- #include<iostream>
- using namespace std;
- int main()
- {
- int x, y;
- cout<<"請輸入x的值:";
- cin>>x;
- cout<<"請輸入y的值:";
- cin>>y;
- cout<<"x的值"<<x<<endl;
- cout<<"x的值"<<x<<endl;
- system("pause");
- return 0;
- }
複製代碼 |