게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
코딩 질문있습니다...!
게시물ID : jisik_146878짧은주소 복사하기
작성자 : K.Carpediem
추천 : 0
조회수 : 348회
댓글수 : 4개
등록시간 : 2013/04/08 08:28:33
#include <iostream>

int main() {
   int num,ok;

cout << "CSE 1020 Lab 9     Keon Noh     [email protected]" << endl;


ok =      0;
  while (!ok) {
cout << "Enter an even number: ";
    cin >> num;
if (num % 2 == 0 )
 cout << num << " is even!" << endl;
 else cout <<"The number is not a positive even number."<< endl;
}
 

 return 0;

}

이 코딩을 썻는데요

아웃컴이 

CSE 1020 Lab 9     Keon Noh     [email protected]  Enter an even number: 1  The number is not a positive even number.  Enter an even number: 2  2 is even!  Enter an even number: 3  The number is not a positive even number.  Enter an even number: 4  4 is even!  Enter an even number:     4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!  Enter an even number: 4 is even!

멈추지를 않네요... 이걸 어찌하나요 ㅠㅠ 도와주세요!


전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호