teddy8 Full Stack Software Engineer

CodeUp - 기초100제(1062)

2019-06-19
teddy8

문제

URL : https://codeup.kr/problemsetsol.php?psid=23


소스코드

// 비트단위로 or 출력
// input : 3 5
// output : 7
// 설명 : 2개의 정수를 비트단위로 or 계산한 10진수 결과
#include <iostream>

using namespace std;

int main()
{
	int n1, n2;
	cin >> n1 >> n2;
	cout << (n1 | n2);
	return 0;
}


Comments

Content