//#include <stdio.h>
//
//void main(){
//
// int x;
// printf("숫자를 입력해주세요");
// scanf("%d", &x);
//
// if (x>=10 && x<=60 && x%2 ==0) printf("%d", x);
//
//}
/*
#include <stdio.h>
int main(){
int i = 0;
for (int i = 0; i < 10; i++)
if (i%2 !=0) printf("%d", i);
return 0;
}*/
#include <stdio.h>
int main(){
double x;
int i = 0;
printf("높이를 입력해주세요.");
scanf("%lf", &x);
while(x>=0.00001)
x /= 2.0;
printf("%lf", x);
return 0;
}
/*
#include <iostream>
#include <windows.h>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(){
const int size = 10;
double number[size];
srand(time(0));
for (int j = 0; j < size; j++) {
number[j] = rand()%10 + 1;
}
for (int i = 0; i < size; i++)
cout << number[i] << " ";
system("pause");
return 0;
}*/
//#include <stdio.h>
//
//void main(){
// int num = 0;
//
// while (num < 10) {
// printf("Hello \n");
//
// num++;
// }
//}
댓글 없음:
댓글 쓰기