Basic Data Types

  • + 0 comments

    **Solution by Using Cout and Cin **

    #include <iostream>
    #include <cstdio>
    #include<iomanip>
    using namespace std;
    
    int main() {
        int int1;
        long long1;
        char char1;
        float float1;
        double double1;
        
        cin>>int1>>long1>>char1>>float1>>double1;
        
        cout<<int1<<endl;
        cout<<long1<<endl;
        cout<<char1<<endl;
        cout<<fixed<<setprecision(6)<<float1<<endl;
        cout<<fixed<<setprecision(9)<<double1;
        return 0;
    }