這個輸入,已經是可以的,只是
40<回車>
50<回車>
60<回車>
這樣友好壹些
#include?<iostream>#include?<cmath>
#include?<iomanip>
using?namespace?std;
void?main(){
double?a1,?a2,?a3;
cout?<<?"Enter?1st?angles?(in?degree):?";
cin?>>?a1;
cout?<<?"Enter?2nd?angles?(in?degree):?";
cin?>>?a2;
cout?<<?"Enter?3th?angles?(in?degree):?";
cin?>>?a3;
cout?<<?setprecision(3)?<<?fixed;
cout?<<?"AngleSin()Tan()?"?<<?endl;
cout?<<?setw(8)?<<?a1?<<?setw(8)?<<?sin(a1)?<<?setw(8)?<<?tan(a1)?<<?endl;
cout?<<?setw(8)?<<?a2?<<?setw(8)?<<?sin(a2)?<<?setw(8)?<<?tan(a2)?<<?endl;
cout?<<?setw(8)?<<?a3?<<?setw(8)?<<?sin(a3)?<<?setw(8)?<<?tan(a3)?<<?endl;
}