top of page

게시판 게시물

fbtldn777
2024년 5월 16일
In 소스 코드 제출
/* #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /* #include<stdio.h> int main() { int x; scanf("%d", &x); if(x > 100) { printf("ANYWAY"); printf("HOY"); printf("DOTS"); } } /* else if(x > 50) { printf("BETWEEN"); } else { printf("NANO"); } if() { if() { if() { if() { } } } } if() { } } */ /* #i nclude <stdio.h> int main() { int x; scanf("%d",&x); if(x<10) { printf ("small"); } } */ /* #include <stdio.h> int main() { int x; scanf("%d",&x); if(x>=10){ printf("big"); } else{ printf("small"); } return 0; } */ //x<10 -> x가 10 미만 //x>10 -> x가 10 초과 // //x<=10 -> x가 10 이하 //x>=10 -> x가 10 이상 /* #include <stdio.h> int main() { printf("\u250C\u252C\u2510\n"); return 0; } */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); if(x > y){ printf(">"); } if(x < y){ printf("<"); } if(x == y){ printf("="); } return 0; } */ /* #include <stdio.h> int main() { int x; scanf("%d",&x); if(x%2==0) { printf("even"); } else { printf("odd"); } return 0; } */ /* #include <stdio.h> int main() { int x; scanf("%d",&x); if (x%7==0){ printf("multiple"); } else{ printf("not multiple"); } return 0; } */ #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); if(x >= y) { printf("%d"); } } // 숙제: 1154, 1160, 1066
0
0
1
fbtldn777
2024년 5월 09일
In 소스 코드 제출
/* 관계연산자 비교연산자 > < a>=b <= ==(같다) !=(다르다) */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%d",x>=y); return 0; } */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%d",x!=y); return 0; } */ /* #include <stdio.h> int main() { int x1,x2,x3; scanf("%d.%d.%d",&x1,&x2,&x3); printf("%02d-%02d-%04d",x3,x2,x1); return 0; } int 범위 ~ 2147483647 */ /* #include <stdio.h> int main() { int x,y; scanf("%d-%d",&x,&y); printf("%06d%07d",x,y); return 0; } */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%d+%d=%d\n",x,y,x+y); printf("%d-%d=%d\n",x,y,x-y); printf("%d*%d=%d\n",x,y,x*y); printf("%d/%d=%d",x,y,x/y); return 0; } */ /** ******기본자료형***** 정수 int %d long long int %lld 실수 float %f double %lf 문자 char %c 산술연산자 + - * / % (ok) 비교연산자 > < >= <= == != (ok) 논리연산자 ! && || 삼항연산자 ( )?( ):( ) */
0
0
1
fbtldn777
2024년 4월 25일
In 소스 코드 제출
/* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%.1f",(float)x*y/2); return 0; } */ /* #include <stdio.h> int main() { int x; scanf("%d",&x); printf("%d ",x/60); printf("%d",x%60); return 0; } */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%d",x==y); return 0; } */ /* #include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); printf("%d",x&&y); } */ /* #include <stdio.h> int main() { int x; scanf("%d",&x); printf("%d%%",x); return 0; } */ /* #include <stdio.h> int main() { int x1,x2,x3; scanf("%d %d %d",&x1,&x2,&x3); printf("%.2f",(float)(x1+x2+x3)/3); return 0; } */ /* #include <stdio.h> int main() { char str[50]={}; char x; printf("attack,please\n"); scanf("%c\n",&x); printf("%c %c\n",x); printf("great!\n"); printf("sild please,because soon grean going here!\n"); scanf("%c\n",&x); printf("%c %c %c %c\n",x); printf("now here is save\n"); printf("this time is talking"); printf("I talk sos and you is s~~.....\n"); scanf("%c",x); if(str[0]=='s'); return 0; } */
0
0
3
fbtldn777
2024년 4월 04일
In 소스 코드 제출
/* #include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /* #include<stdio.h> int main() { int n; scanf("%d",&n); printf("%d",n); return 0; } */ /* #include <stdio.h> int main() { float x; printf("실수 하나를 입력하세요 >> "); scanf("%f",&x); printf("당신이 입력하신 실수는 "); printf("%f",x); printf("입니다."); return 0; } */ /* #include <stdio.h> int main() { int y,g; scanf("%d %d",&y,&g); printf("%d %d",y,g); return 0; } */ /* #include <stdio.h> int main() { char y,g; scanf("%c %c",&g,&y); printf("%c %c",y,g); return 0; } */ /* #include <stdio.h> int main() { int h; scanf("%d",&h); printf("%d %d %d",h,h,h); return 0; } */ /* #include <stdio.h> int main() { int h,m; scanf("%d:%d",&h,&m); printf("%d:%d",h,m); return 0; } */ /* #include<stdio.h> int main() { int h,s,m; scanf("%d:%d:%d",&h,&s,&m); printf("%d",s); return 0; } */ /* #include <stdio.h> int main() { float p; scanf("%f",&p); printf("%.4f",p*8); return 0; } */ /* #include <stdio.h> int main() { int p,i; scanf("%d %d",&p,&i); printf("%d",p+i); return 0; } */
0
0
10
fbtldn777
2024년 3월 28일
In 소스 코드 제출
//printf("\'He\'llo\n"); /* #include <stdio.h> int main() { printf("\'Hello\'"); return 0; } */ /* #include <stdio.h> int main() { printf("\"Hello World\""); return 0; } */ /* #include <stdio.h> int main() { printf("\"!@#$%%^&*()\""); return 0; } */ /* #include <stdio.h> int main() { printf("\"C:\\Download\\hello.cpp\""); return 0; } */ /* #include <stdio.h> int main() { printf("Hello,\nWorld!"); return 0; } *******자료형****************** 선언 입출력 정수 int %d 실수 float %f 문자 char %c ****************************** integer -> int floating point -> float character -> char (차 or 캐릭터) ******************* 정수를 담을 수 있는 변수 a 를 만들어 -> 정수 변수 a 선언 int a; */ /* #include <stdio.h> int main() { int a; // //printf("a"); (x) // a라는 글자를 출력해 printf("%d",a); //정수 하나 출력 , a에 들어있는거 return 0; } */ //실수 변수 b 선언; /* #include <stdio.h> int main() { char d = 'a'; //('a'가 들어있는) 문자 변수 d 선언할게 float b=7.0; // (7.0이 들어있는) 실수 변수 b 선언할게 printf("%f\n",b); // 변수 b에 들어있는 실수 출력해줘 printf("%c\n",d); // 변수 d에 들어있는 문자 출력해줘 return 0; } int로 선언한 변수 : -2147483648 ~ 2147483647 #include <stdio.h> int main() { // 6이 들어있는 정수 변수 browl 선언하줘 // 변수 browl에 들어있는 정수 출력해줘 int browl=6; printf("%d\n",browl); scanf("%d",&browl); printf("%d",browl); return 0; } 1. 문자 변수 선언 2. 문자 변수 입력받기 3. 문자 변수 출력하기 #include <stdio.h> int main() { char browl='h'; scanf("%c",&browl); printf("%c",browl); return 0; } */
0
0
7
fbtldn777
2024년 3월 21일
In 소스 코드 제출
/* #include <stdio.h> int main() { printf("출력할내용"); return 0; } */ /* #include <stdio.h> int main() { printf("Hello"); return 0; } */ /* #include <stdio.h> int main() { printf("Hello World"); return 0; } */ /* #include <stdio.h> int main() { printf("Hello\nWorld"); return 0; } */
0
0
4
fbtldn777
2024년 2월 27일
In 소스 코드 제출
/* #include <stdio.h> int main() { printf("123456안녕"); return 0; } */ /* #include <stdio.h> int main() { printf("Hello") ; return 0; } */ /* #include <stdio.h> int main() { printf("Hello World"); return 0; } */ /* #include <stdio.h> int main() { printf("Hello\nWorld"); return 0; } */
0
0
4

fbtldn777

더보기
bottom of page