컴퓨터 정보/자바
2020년 9월 7(월) 웹프로그래밍 둘째 주 첫번째 과제 도전문제
반복문 do-while 이번 과제 : 학점을 나타내는 if else 문을 do while과 혼합 및 여러 조건을 충족하는 코드를 짜는 과제이다. 더보기를 클릭하면 소스코드가 출력됩니다. 더보기 소스코드 import java.util.Scanner; public class ScorePrint { public static void main(String[] args) { int score; Scanner input = new Scanner(System.in); System.out.println("성적을 입력하세요"); score = input.nextInt(); if(score >= 90) { System.out.println("당신의 학점은 A입니다."); } else if(score >= 80) { Sys..
2020. 9. 7. 23:53