![[Python] 데이터와 변수 연습](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fzmn7c%2FbtsHtiZWNYi%2FR9cQmAlm70PCvAkstKJB31%2Fimg.png)
width = float(input('가로 길이: '))height = float(input('세로 길이: '))triangle = width * height /2square = width * heightprint ('-' * 20)print('삼각형 넓이 : %f' % triangle)print('사각형 넓이 : %f' % square)print('삼각형 넓이 : %2f' % triangle)print('사각형 넓이 : %2f' % square)print ('-' * 20) import mathradius = float(input('반지름(cm) 입력 : '))circleArea = math.pi * radius ** 2circleLenth = 2 * math.pi * radiusprint('원의 넓..
국어점수, 영어점수, 수학점수 변수를 선언하고 값을 입력하여 세 점수의 합을 출력 public class SumInt { public static void main(String[] args) { int kor = 98; int eng = 67; int math = 62; System.out.println(kor+eng+math); // 문자가 먼저 오면 문자로 인식해버려서 () 필요 System.out.println("합계 : " + (kor+eng+math)); } } public class SumInt { public static void main(String[] args) { int kor = 98; int eng = 67; int math = 62; int sum = kor + eng + math..