본문 바로가기
sidebar toggle
Home
Tag
Guestbook
Subscribe
enable7997의 잡다한 블로그
프로그래밍/C,C++
Codeup Q.1086 C언어
프로그래밍/C,C++
·
2022. 8. 25.
소스코드 더보기 123456789101112#include int main(){ int w,h,b; b=24; double sum; scanf("%d %d %d",&w,&h,&b); sum = (double)(w*h*b)/(2
Codeup Q.1106 C언어
프로그래밍/C,C++
·
2022. 8. 25.
소스코드 더보기 12345678910#include #include int main(){ int a = INT_MAX; int b = INT_MIN; printf("%d %d",b,a); return 0;} cs
Codeup Q.1089 C언어
프로그래밍/C,C++
·
2022. 8. 25.
소스코드 더보기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include int main(){ int a,d,n; int num; scanf("%d %d %d",&a,&d,&n); num = a; for(int i=1; i
Codeup Q.1070 C언어
프로그래밍/C,C++
·
2022. 8. 24.
소스코드 더보기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 #include int main(){ int a; scanf("%d",&a); switch(a){ case 1: case 2: case 12: printf("winter"); break; case 3: case 4: case 5: printf("spring"); break; case 6: case 7: case 8: printf("summer"); break; case 9: case 10: case 11: printf("fall"); break; } return 0; } Colored by Color Scripter cs
Codeup Q.1083 C언어
프로그래밍/C,C++
·
2022. 8. 23.
소스코드 더보기 12345678910111213#include int main(){ int i; int num; scanf("%d",&num); for(i=1; i
Codeup Q.1087 C언어
프로그래밍/C,C++
·
2022. 8. 23.
소스코드 더보기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include int main(){ int n, i, s=0; scanf("%d", &n); for(i=1; ; i++) { s+=i; if(s >= n) break; } printf("%d\n", s); return 0; } cs
Codeup Q.1085 C언어
프로그래밍/C,C++
·
2022. 8. 22.
소스코드 더보기 1 2 3 4 5 6 7 8 9 10 11 #include int main(){ int h,b,c,s; double sum; scanf("%d %d %d %d",&h,&b,&c,&s); sum = (double)(h*b*c*s)/(2
아두이노 온도 lcd 패널에 출력 및 릴레이 작동
프로그래밍/C,C++
·
2022. 8. 20.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 #include "DHT.h" #include #define DHTPIN 2 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); LiquidCrystal_I2C lcd(0x27, 16, 2); const int Htmp = 35; //최고 온도 const int Mtmp = 25; //중간 온도 const int Ltmp = 15; ..
codeup Q.1805 C언어
프로그래밍/C,C++
·
2022. 8. 18.
C언어 코드 더보기 1 2 3 4 5 6 7 8 9 12 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #include #include #define SIZE 100 struct Machine { int num; long gas; }; int main() { int n = 0; scanf("%d", &n); struct Machine machine[SIZE]; struct Machine tmp; for (int i = 0; i
콤마로 구분된 숫자들의 합을 구하기
프로그래밍/C,C++
·
2021. 12. 4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 #include #include #include int main(void) { char arr[100] = ""; int sum = 0; int x = 0 ,y = 0; int tmp = 0; printf("문자열을 입력하세요 : "); scanf("%s",arr); for (int i = 0; i
Table
Of
Contents
열기
목차
목차 닫기
표시할 목차가 없습니다.
안녕하세요
감사해요
잘있어요
PREV
[
1
]
[
2
]
[
3
]
NEXT
반응형
device theme
light theme
dark theme
상단으로
티스토리툴바
enable7997의 잡다한 블로그
구독하기