프로그래머스 C# 옷가게 할인 받기(3항 연산자, 파이썬, 자바)
using System; public class Solution { public int solution(int price) { int answer = 0; if(price = 100000) { answer = price * 95/100; } else if(price >= 300000 && price = 500000 && price = 300000 && price = 500000 ? answer = price * 4/5 : price; return answer; } } ///// using System; public class Solution { public int solution(float price) { float answer = 0; answer = price >= 500000 ? price * 0...
2023.06.17