Danhae's Blog
2017년 4월 14일 금요일
while문_정수구하기
while문 사용하여 n*n>12000이 되는 가장 작은 정수 n을 구하여라.
#include <iostream>
using namespace std;
int main() {
int n=0;
while((n*n)<12000){
n++;
}
cout<<"This number is "<<n<<endl;
return 0;
}
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기