Basic Data Types

  • + 0 comments
    #include <iostream>
    #include <bits/stdc++.h>
    
    int main()
    {
    int a;
    long b;
    char c;
    float d;
    long e;
    
    cin>>a>>b>>c>>d>>e;
    cout<<a<<'\n'<<b<<'\n'<<c<<'\n'<<setprecision(10)<<d<<'\n'<<setprecision(20)<<e;  //we need precision for int precision and hidden test cases
    
    return 0;
    }