Artwork
Aschool
Study room
Test
Submission Status
Board
English
keyboard_arrow_down
Korean
English
Sign in
Sign up
Sign in
Sign up
Aschool
Study room
Test
Submission Status
Board
Practice room
Mypage
Korean
English
Sign in
1주 전
변수 개념
변수 대입 채우기
이성원
dike0312
#include <iostream> using namespace std; int main() { int a=3; // +-21억 long long int ll=19999999999999;//+- 9*10^18 double f=3.14; char c = 'x';// 문자 1개 string s = "hello";// 문자 여러개, 문자열 //cin >> a >> ll >> f >> c >> s; //cout << s << ' ' << c << ' ' << f << ' ' << ll << ' ' << a; // +, -, * 은 동일 cout << 7/4 << '\n';//(int)/(int) = 정수몫 cout << 7%4;// 정수나머지 // //:몫 없음 // **:거듭제곱 없음 // "Hello"*2 => "HelloHello" 안됨 }
0
Manual