Basic Data Types

Sort by

recency

|

1539 Discussions

|

  • + 0 comments

    include

    include // Include for setting precision

    using namespace std;

    int main() { int integer; long longValue; char character; float floatingPoint; double doubleValue;

    // Input reading
    cin >> integer >> longValue >> character >> floatingPoint >> doubleValue;
    
    // Output with proper formatting
    cout << integer << endl;
    cout << longValue << endl;
    cout << character << endl;
    cout << fixed << setprecision(3) << floatingPoint << endl; // Set float precision to 3 decimal places
    cout << fixed << setprecision(9) << doubleValue << endl;   // Set double precision to 9 decimal places
    
    return 0;
    

    }

  • + 0 comments

    [DevOps Training Institute in Coimbatore]

    Skyappz Software Academy has their unique teaching methodology, real-world project exposure and industry partnerships that make them stand out from other training institutes in the region. Skyappz Software Academy has certificate programs, flexible learning options and success stories of students excelling in DevOps education.

    https://skyappzacademy.com/devops/

  • + 0 comments

    include

    include

    include

    include

    include

    using namespace std;

    int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
    int a; long b; char c; float d; double e;

    cin>>a >>b >>c >>d >>e; printf("%d \n%ld \n%c \n%f \n%lf \n", a, b, c, d, e);

    return 0;

    }

  • + 0 comments

    include

    include

    include

    using namespace std;

    int main() { int integer; long num1; char a; float num2; double num3; cin>>integer>>num1>>a>>num2>>num3; cout<

  • + 0 comments

    int main() { int a; long b; char c; float d; double e;

    cin>>a >>b >>c >>d >>e;
    cout<<a <<endl;
     cout<<b <<endl;
     cout <<c <<endl;
     cout <<d <<endl;
     cout <<e <<endl;
    return 0;
    

    }