No older revisions available
No older revisions available
~cpp #include <iostream> using namespace std; int main() { int a; cout << " 숫자를 입력하시오 : " ; cin >> a; if(a >= 50 && a <= 100) { for(int i = 1;i <= a; i ++) { if ( i%3==0 ) cout << i << endl; else if ( i%5==0 ) cout << i << ; } } else cout << "잘못 입력하셨습니다 "; system("pause"); return 0; }