62 9 it cookbook

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "; bool c = -1, d = 0; cout <<" c(-1) = " << c <<"\n"; cout <<" d(0) = " << d <<"\n"; } - 33 - IT COOKBOOK 7] 기본 연산자 IT COOKBOOK 산술 산술 연산자 - 34 - [실습하기 2-12] 산술 연산자 사용하기 [예제 2-12] 2_14.cpp 01 02 03 04 05 06 07 08 09 10 11 #include <iostream> using namespace std; void main() { int a = 8, b = 3; cout<<a<<" + "<<b<<" = "<<a+b<<"\n"; cout<<a<<" - "<<b<<" = "<<a-b<<"\n"; cout<<a<<" * "<<b<<" = "<<a*b<<"\n"; cout<<a<<" / "<<b<<" = "<<a/b<<"\n"; cout<<a<<" % "<<b<<" = "<<a%b<<"\n...
View Full Document

Ask a homework question - tutors are online