https://youtu.be/tBBiaKVW12Q?feature=shared
https://youtu.be/tBBiaKVW12Q?feature=shared
cincinμ΄λ?
μ¬μ© μμ
#include <iostream>
int main() {
int a;
std::cin >> a; // μ¬μ©μ μ
λ ₯μ λ°μ λ³μ aμ μ μ₯
return 0;
}
μ μΆλ ₯ λ°©ν₯ μ΄ν΄νκΈ°:
std::cout << : λ°μ΄ν°λ₯Ό μΆλ ₯ (νλ©΄μΌλ‘ 보λ) β νμ΄νκ° cout μͺ½μΌλ‘std::cin >> : λ°μ΄ν°λ₯Ό μ
λ ₯ (ν€λ³΄λμμ λ°μμ΄) β νμ΄νκ° λ³μ μͺ½μΌλ‘μ¬λ¬ κ° μ λ ₯λ°κΈ°:
int main()
{
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int e = 0;
std::cin >> a;
std::cin >> b;
std::cin >> c >> d >> e;
std::cout << a + b;
std::cout << b * c;
std::cout << c / d;
std::cout << d % e;
std::cout << e + a;
return 0;
}
endlendlμ΄λ?