*5.1 (Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). Your program ends with the input 0. Display the average as a floating-point number. 1 2 3 4 5 6 7 8 9 10 11 12 13 14..
*4.1 (Algebra: solve quadratic equations) The two roots of a quadratic equation, for example, can be obtained using the following formula: is called the discriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zero, the equation has one root. If it is negative, the equation has no real roots. Write a program that prompts the user to enter values for a,..
2.1 (Convert Celsius to Fahrenheit) Write a program that reads a Celsius degree from the console and converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: fahrenheit = (9 / 5) * celsius + 32 1 2 3 4 5 6 celsius = eval(input("Enter a degree in Celsius: ")) fahrenheit = (9/5) * celsius + 32 print(celsius, " celsius is ", fahrenheit,"Fahrenheit.") Colored ..
- Total
- Today
- Yesterday
- 백준 1874
- 파이썬
- 파이썬 리스트
- 파이썬 선택문
- 파이썬 문자열
- 자바
- 자바스크립트 자료구조
- 파이썬 함수
- 파이썬 진수 변환
- 파이썬 if문
- 웹
- 자바스크립트 그래프
- css
- 백준
- 파이썬 연산자
- 파이썬 while
- 파이썬 for
- 파이썬 클래스
- 백준 11501
- 백준 10451
- 버츄어박스
- 파이썬 단계적 개선
- 자바 에센셜 실습문제
- 파이썬 예제
- 파이썬 객체
- 자료구조
- css 그리드
- css 박스
- 명품 c++ 실습
- 파이썬 터틀
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |