BaekJoon

1008번 A/B

GamJia 2023. 3. 1. 02:56

단계별로 풀어보기 - 입출력과 사칙연산 - 5단계

https://www.acmicpc.net/problem/1008

#include <iostream>
using namespace std;
int main()
{
    double A,B;
    cin>>A>>B;
    
    cout<<fixed;
    cout.precision(10);
    cout<<A/B;
    
    return 0;
}

🔊 소수점 아래 자릿수를 정하려면 cout<<fixed;를 적어야한다