Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C5P20
//g++ 4.9.3 #include <iostream> using namespace std; int main() { int N; for(;1;){ cout << "Please enter a radius R:" << endl; cin >> N; //輸入半徑 if(N>0){ //半徑>0 輸出面積 cout << "Area:" << 3.1415926*N*N << endl; } else if(N<0){//半徑<0 輸出錯誤訊息 cout << "你輸入錯的半徑" << endl; } else{ //半徑=0 離開 cout << "離開....." << endl; break; } } return 0; }
run
|
edit
|
history
|
help
0
MyStringv2
Chinu
Stream6
Facebook - Split into monotonic sequences
count pairs with given sum hashing
ADAKOHL - hpclearn
Median of row wise sorted matrix
Zadanie Kolokwium 2013: Trójkąty i trójkąty
shell sort
Shortest Non Common Subsequence