Basic Data Types

  • + 7 comments

    c++

    #include <iostream>
    #include <cstdio>
    #include <iomanip>
    using namespace std;
    
    int main() {
        // Complete the code.
        int a;
        long b;
        char ch;
        float f;
        double d;
        std::cin>>a>>b>>ch>>f>>d;
        std::cout<<a<<endl;
        std::cout<<b<<endl;
        std::cout<<ch<<endl;
        std::cout<<fixed<<setprecision(3)<<f<<endl;
        std::cout<<fixed<<setprecision(9)<<d<<endl;
        return 0;
    }