- Prepare
- C++
- Introduction
- Basic Data Types
- Discussions
Basic Data Types
Basic Data Types
+ 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 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;
}
+ 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.
+ 0 comments Here are the solution of Basic Data Types in C++ Hacker Rank Solution
+ 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 );
Sort 1345 Discussions, By:
Please Login in order to post a comment