We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. C++
  3. Introduction
  4. Basic Data Types
  5. Discussions

Basic Data Types

Problem
Submissions
Leaderboard
Discussions
Editorial

Sort 1345 Discussions, By:

recency

Please Login in order to post a comment

  • saiharsha3377
    22 hours ago+ 0 comments

    My Solution :

    include

    include

    include

    using namespace std;

    int main() { int integer; long long long2; char character; float floatnumber; double doublenumber; cin >> integer >> long2 >> character >> floatnumber >> doublenumber; cout << integer << endl; cout << long2 << endl; cout << character << endl; cout << setprecision(10) << floatnumber << endl; cout << setprecision(10) << doublenumber << endl; return 0; }

    0|
    Permalink
  • rahulvs2809
    5 days ago+ 0 comments

    include

    include

    using namespace std;

    int main() { // Complete the code. int i; long l; char c; float f; double d; scanf("%d %ld %c %f %lf" , &i, &l, &c, &f, &d); printf("%d\n%ld\n%c\n%.3f\n%.9lf\n", i,l,c,f,d);

    return 0;
    

    }

    1|
    Permalink
  • walkerflora471
    6 days ago+ 0 comments

    The greatest Best SEO Service, web design, graphic design, content writing, web development, PPC (Pay Per Click), and SMO (Social Media Optimization) services are all available from us at very affordable pricing.

    -1|
    Permalink
  • gangadharghru67
    2 weeks ago+ 0 comments

    Here are the solution of Basic Data Types in C++ Hacker Rank Solution

    -3|
    Permalink
  • ayan_agrawal_aa
    3 weeks ago+ 1 comment

    Is there any difference in both of them? We can use scanf like this
    scanf("%d",&i); scanf("%ld",&l); scanf("%c",&ch); scanf("%f",&f); scanf("%lf",&d);

        or
    
    scanf("%d %ld %c %f %lf ",&i, &l, &ch, &f, &d );
    
    -4|
    Permalink
Load more conversations

Need Help?


View editorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy