728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181917
소스코드
using System;
public class Solution
{
public bool solution(bool x1, bool x2, bool x3, bool x4)
{
bool answer = true;
bool x = x1 || x2;
bool y = x3 || x4;
answer = x && y;
return answer;
}
}
728x90
'코딩공부 > 프로그래머스' 카테고리의 다른 글
[프로그래머스]Lv.0 글자 이어 붙여 문자열 만들기 C# (0) | 2023.06.07 |
---|---|
[프로그래머스]Lv.0 주사위 게임3 C# (0) | 2023.06.07 |
[프로그래머스]Lv.0 배열 만들기 4 C# (0) | 2023.06.02 |
[프로그래머스]Lv.0 콜라츠 수열 만들기 C# (0) | 2023.06.02 |
[프로그래머스]Lv.0 카운트 업 C# (0) | 2023.06.02 |