나를 기록하다
article thumbnail
[백준 1008 파이썬/python] A/B
Algorithm/baekjoon 2023. 2. 27. 14:05

1) A, B = input().split() print(int(A)/int(B)) 2) A,B = map(int, input().split()) print(A/B)

article thumbnail
[백준 10998 파이썬/python] AxB
Algorithm/baekjoon 2023. 2. 27. 14:03

A, B = input().split() print(int(A)*int(B))

article thumbnail
[백준 1001 파이썬/python] A-B
Algorithm/baekjoon 2023. 2. 27. 14:02

A,B = input().split() print(int(A)-int(B))

article thumbnail
[백준 1000 파이썬/python] A+B
Algorithm/baekjoon 2023. 2. 27. 13:59

a, b = input().split() print(int(a) + int(b))

article thumbnail
[백준 2557 파이썬/python] Hello World
Algorithm/baekjoon 2023. 2. 27. 13:58

print("Hello world!")

article thumbnail
[C] 버스카드 찍기(초등학생, 중학생, 고등학생, 어른)
기타/C 2022. 11. 28. 15:56

이번 시간에는 버스카드를 찍었을 때 연령대별 요금을 표출하는 프로젝트를 만들 것이다. if문과 switch문을 활용하여 2가지로 나누어서 만들어볼 계획이다. 본 요금표는 부산광역시 기준 버스 요금표를 참고하였고 무임승차 대상은 임의로 설정하였다. 1) if문 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 #include int main(void) { int i = 5; if (i >= 8 && i = 14 && i = 65) { printf("65세 이상 노인은 무임승차 대상입니다.\n"); } else if (i >= 20) { printf("요금은 1200원입니다.\n"); } else { p..

profile on loading

Loading...