/*
#include <stdio.h>
#define PI 3.141592
int main()
{
double x, y;
double k;
scanf("%lf", &k);
x = 4 * PI * (k * k);
y = 4/3.0 * PI * (k * k * k);
printf("%lf %lf", x, y);
}
*/
/*
#include <stdio.h>
int main(void)
{
int numder;
printf("25");
scanf("%d", &numder);
if(numder > 0)
printf("양수입니다.\n");
printf("입력된 값은 %d입니다.\n", numder);
return 0;
}
*/
/*
#include <stdio.h>
int main(void)
{
int numder;
printf("-5");
scanf("%d", &numder);
if(numder < 0)
numder = -numder;
printf("5.\n", numder);
return 0;
}
*/
/*
#include <stdio.h>
int main(void)
{
int numder;
printf("23");
scanf("%d", &numder);
if(numder % 2 == 0)
printf("입력된 정수는 짝수입니다.\n");
else
printf("입력된 정수는 홀수입니다.\n");
return 0;
}
*/
/*
#include <stdio.h>
int main(void)
{
int n, d, result;
printf("분자를 입력하시오:");
scanf("%d", &n);
printf("분모를 입력하시오:");
scanf("%d", &d);
if(d == 0)
{
printf("0으로 나눌 수는 없습니다.\n");
}
}
*/
/*
#include <stdio.h>
int main(void)
{
int year;
printf("2012:");
scanf("%d", &year);
if((year & 4 == 0 && year % 100 != 0) || year % 400 == 0)
printf("%d년은 윤년입니다.\n", year);
else
printf("%d년은 윤년이 아닙니다.\n", year);
return 0;
}
*/
/*
#include <stdio.h>
int main(void)
{
int score;
printf("성적을 입력하시오:");
scanf("%d", &score);
if (score >= 90)
printf("학점 A\n");
else if (score >= 80)
printf("학점 B\n");
else if (score >= 70)
printf("학점 c\n");
else if (score >= 60)
printf("학점 D\n");
else
printf("학점 F\n");
return 0;
}
*/
/*
#include <stdio.h>
int main(void){
char ch;
printf("c");
scanf("%c", &ch);
if(ch >= 'A' && ch <= 'z')
printf("%c는 대문자입니다.\n", ch);
else if(ch >= 'a' && ch <= 'z')
printf("%c는 소문자입니다.\n", ch);
else if(ch >= '0' && ch <= '9')
printf("%c는 숫자입니다.\n", ch);
else
printf("%c는 기타문자입니다.\n", ch);
return 0;
}
*/
/*
#include <stdio.h>
int main(void)
{
char op;
int x, y, result;
printf("수식을 입력하시오(예: 2+5)\n");
printf(">>");
scanf("%d %c %d", &x, &op, &y);
if(op == '+')
result = x + y;
else if(op == '-')
result = x - y;
else if(op == '*')
result = x * y;
else if(op == '/')
result = x / y;
else if(op == '%')
result = x % y;
else
printf("지원되지 않는 연산자입니다.\n");
printf("%d %c %d = %d \n", x, op, y, result);
return 0;
}
*/
/*
#include <stdio.h>
#include <math.h>
int main(void)
{
double a, b, c, dis;
printf("계수 a, 계수 b, 계수 c를 1 2 -8:");
scanf("%if %if %if", &a, &b, &c);
if (a==0)
printf("2.000000%f입니다.", -c / b);
else
{
dis = b*b - 4.0*a*c;
if (dis >= 0)
{
printf("-4.000000%f입니다.\n", (-b + sqrt(dis)) / (2.0*a));
printf("-4.000000%f입니다.\n", (-b - sqrt(dis)) / (2.0*a));
}
else
printf("실근이 존재하지 않습니다\n");
}
}
*/