This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
int a, b; | |
cout << "請輸入被除數:"; | |
cin >> a; | |
cout << "請輸入除數:"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c, x, y; | |
cout <<"方程式: y=a*x*x+b*x+c\n"; | |
cout <<"請輸入方程式中的a\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int a, b; | |
cout <<"判斷a是否為b的倍數\n"; | |
cout <<"\n請輸入a:"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c, m, n, z; | |
cout <<"方程式: y=a*x*x+b*x+c\n"; | |
cout <<"請輸入方程式中的a:\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int month, b; | |
cout << "輸入出生日期來得知此日期出生的人的星座\n"; | |
cout << "\n請輸入出生月份:"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c, m, n, z; | |
cout <<"方程式: y=a*x*x+b*x+c\n"; | |
cout <<"請輸入方程式中的a:\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int score; | |
cout << "輸入非0~100的數來退出\n"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int first, second, max; | |
cout << "請輸入你要小於等於多少數值得費氏數列:\n"; | |
cin >> max; | |
first = 1; | |
second = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(){ | |
int limit; | |
cout << "please input the LIMIT:"; | |
cin >> limit; | |
for (int times = 3; times < limit; times += times){ | |
cout << times << " "; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(){ | |
int plus, ans; | |
ans = 0; | |
cout << "請輸入想要加起來的數(想要減的話請用負數),輸入完成後請輸入0來取得答案\n"; | |
while (plus !=0){ | |
cin >> plus; | |
ans += plus; |
OlderNewer