/*
#include<stdio.h>
int main()
{
printf("%d",10>7);
return 0;
}
산술연산자 + - * / %
1. overflow(오버플로) : 자료형의 표현 범위를 넘었을때
2. 강제형변환 : 임시로 자료형을 변환
3. 정수/정수 -> 정수몫
실수/정수 -> 실수결과
비교연산자 > < >= <= == !=
true -> 1 , 0이 아닌 모든 수
false -> 0
1. 비교연산의 결과는 무조건 1or0(논리값)로 나온다
2. >= <= != =은 오른쪽에!!
3. == vs =
a=10; (대입) a를 10이라고하자. 명령
a==10 (비교) a와 10이 같으면 1, 아니면 0
중요!!!
윤성 == 1
윤성 = 1
a>=b (o)
a=>b (x) 컴파일오류!
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b);
return 0;
}
*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a<=b);
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("%d",10>7);
return 0;
}
산술연산자 + - * / %
1. overflow(오버플로) : 자료형의 표현 범위를 넘었을때
2. 강제형변환 : 임시로 자료형을 변환
3. 정수/정수 -> 정수몫
실수/정수 -> 실수결과
비교연산자 > < >= <= == !=
true -> 1 , 0이 아닌 모든 수
false -> 0
1. 비교연산의 결과는 무조건 1or0(논리값)로 나온다
2. >= <= != =은 오른쪽에!!
3. == vs =
a=10; (대입) a를 10이라고하자. 명령
a==10 (비교) a와 10이 같으면 1, 아니면 0
중요!!!
윤성 == 1
윤성 = 1
a>=b (o)
a=>b (x) 컴파일오류!
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b);
return 0;
}
*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a!=b);
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("%d",10>7);
return 0;
}
산술연산자 + - * / %
1. overflow(오버플로) : 자료형의 표현 범위를 넘었을때
2. 강제형변환 : 임시로 자료형을 변환
3. 정수/정수 -> 정수몫
실수/정수 -> 실수결과
비교연산자 > < >= <= == !=
true -> 1 , 0이 아닌 모든 수
false -> 0
1. 비교연산의 결과는 무조건 1or0(논리값)로 나온다
2. >= <= != =은 오른쪽에!!
3. == vs =
a=10; (대입) a를 10이라고하자. 명령
a==10 (비교) a와 10이 같으면 1, 아니면 0
중요!!!
윤성 == 1
윤성 = 1
a>=b (o)
a=>b (x) 컴파일오류!
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b);
return 0;
}
*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a<=b);
return 0;
}*/
/*
#include<stdio.h>
int main()
{
printf("%d",10>7);
return 0;
}
산술연산자 + - * / %
1. overflow(오버플로) : 자료형의 표현 범위를 넘었을때
2. 강제형변환 : 임시로 자료형을 변환
3. 정수/정수 -> 정수몫
실수/정수 -> 실수결과
비교연산자 > < >= <= == !=
true -> 1 , 0이 아닌 모든 수
false -> 0
1. 비교연산의 결과는 무조건 1or0(논리값)로 나온다
2. >= <= != =은 오른쪽에!!
3. == vs =
a=10; (대입) a를 10이라고하자. 명령
a==10 (비교) a와 10이 같으면 1, 아니면 0
중요!!!
윤성 == 1
윤성 = 1
a>=b (o)
a=>b (x) 컴파일오류!
논리연산자 ! && ||
! not
&& and
|| or
1 -> 0
0 -> 1
a && b -> a와 b가 모두 1일때만 1
a || b -> a 또는 b가 1일때 1
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
//printf("%d",a>b && a==10);
//printf("%d", a>b || a==10);
return 0;
}
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}*//*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==1 || b==1);
return 0;
}
; 명령의 끝
*/
/*
#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a>=50)
{
printf("hello");
}
else if(50>a && a>=20)
{
printf("hi");
}
else if()
{
if()
{
}
else
{
}
}
else
{
printf("bye");
}
return 0;
}
*//*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if (a<10){
printf("small");
}
else{
printf("big");
}
return 0;
}*//*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a<b){
printf("<");
}
else if(a>b){
printf(">");
}
else{
printf("=");
}
return 0;
}
15 (x)
7 14 21 28 ...
+ - * / %
n이 7의 배수인지?
n을 7로 나눈 나머지가 0인지?
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf ("%d",&a);
if (a%7==0){
printf("multiple");
}
else{
printf("not multiple");
}
return 0;
}*//*
#include <stdio.h>
int main()
{
float a;
scanf ("%f",&a);
if(a>50 && a<60){
printf("win");
}else{
printf("lose");}
return 0;
}*/
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if (a>50 && a<70 a%7==0){
printf("win");
}else{
printf("lose");
}
return 0;
}