KakaoTalk_20190606_001802318.png
  • 246x0w
Welcome
Curriculum
Install&Go
Board
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
  • 카테고리
  • 전체 게시물
  • 내 게시물
ibeunicorn
2019년 7월 24일

2019-07-24

게시판: 소스 코드 제출

/*

#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, c;


scanf("%d %d", &a, &b);


c = a>b ? a : b;


printf("%d", c);

}

*/

/*

#include<stdio.h>


int main()

{

int a,b,c,d,e,f;


scanf("%d %d %d", &a, &b, &c );


d=a<b ? a:b;


e=d<c ? d:c;


printf("%d",e);


return 0;

}

*/

/*

#include<stdio.h>


int main()

{

int a,x;


scanf("%d %d", &a, &x);


printf("%d", a<<x);


return 0;

}

*/

/*

#include<stdio.h>


int main()

{

int x,y;


scanf("%d", &x);


scanf("%d", &y);


printf("%d", x>>y);


return 0;

}

*/

/*

#include<stdio.h>


int main() {

int k;



scanf("%d", &k);


if(k==10) {

printf("hello ");

}

else if(k==20) {

printf("bye");

}

else {

printf("world");

}


}

*/

/*

#include<stdio.h>


int main()

{

int a,b,c;


scanf("%d %d %d", &a, &b, &c);



if(a+b<=c)

{

printf("삼각형아님");

}

else if(a==b&&b==c)

{

printf("정삼각형");

}

else if(a==b||a==c||c==b)

{

printf("이등변삼각형");

}

else if(a*a+b*b==c*c)

{

printf("직각삼각형");

}


else

{

printf("삼각형");

}


return 0;

}

*/


#include<stdio.h>


int main()

{

int a,b;


scanf("%d %d", &a,&b);


if(b<30)

{

printf("%d %d", a-b);

}

else if(b>=30)

{

printf("%d %d", a-b);

}


return 0;

}










































































댓글 0개
0
댓글
댓글 0개
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호