์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1038 ~ 1046 (์‚ฐ์ˆ ์—ฐ์‚ฐ) ํŒŒ์ด์ฌ ํ’€์ด

  • -

*1038๋ฒˆ

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

 

*1039๋ฒˆ

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

*1040๋ฒˆ

a = int(input())
print(a*-1)

*1041๋ฒˆ

a = str(input())
print(chr(ord(a)+1))

*1042๋ฒˆ

a, b = map(int,input().split())
print(a//b)

*1043๋ฒˆ

a, b = map(int,input().split())
print(a%b)

*1044๋ฒˆ

a = int(input())
print(a+1)

*1045๋ฒˆ

a,b = map(int,input().split())
print(a +b)
print(a-b)
print(a*b)
print(a//b)
print(a%b)
print("%0.2f"%(a/b))

*1046๋ฒˆ

a,b,c = map(int,input().split())
print(a+b+c)
print("%.1f"%((a+b+c)/3))

*C++/CPPํ’€์ด๋„ code up ์นดํ…Œ๊ณ ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.

 

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.