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

2000504

게시판: 소스 코드 제출

/*



int main()

{

printf("Hello world!\n");

return 0;

}

*/

#include <stdio.h>

int main(){

int a,b;

int c=60;

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

b-=30;

if(b<0){

a-=1;

c+b;

printf("%d %d",a,c);

}

else

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

return 0;

}






/*

#include <stdio.h>

int main(){

int a;

scanf("%d",&a);

if(50<=a&&a<=70)

{

printf("win");

}

else if(a%6==0)

{

printf("win");

}

else{

printf("lose");

}







return 0;



}

*/

/*

#include <stdio.h>

int main(){

int a,b;

int c=60;

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

b-=30;

if(b<0){

a-=1;

c+b;

printf("%d %d",a+24);

}

else

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

return 0;

return 0;


}

*/

/*

#include<stdio.h>

int main(){

double a,s,d,f;

scanf("%lf %lf",&a,&s);

if(a<150){

d=(a-100);}

else if(a>=150&&a<160){

d=(a-150)/2+50;}

else{

d=(a-100)*0.9;}


f=(s-d)*100/d;

if(f<=10){

printf("정상");

}

else if(f>10&&f<=20){

printf("과체중");

}

else{

printf("비만");

}

return 0;

}

*/





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