Skip to main content

Posts

Showing posts with the label Basic Data Types Hackerrank Solution CPP

Basic Data Types Hackerrank Solution CPP

 Basic Data Types Hackerrank Solution CPP For Explanation Watch Video: Sample Input 3 12345678912345 a 334.23 14049.30493 Sample Output 3 12345678912345 a 334.230 14049.304930000 Code: #include   < iostream > #include   < cstdio > using   namespace  std; int  main() {     int a;     long b;     char c;     float d;     double e;     scanf("%d %ld %c %f %lf",&a,&b,&c,&d,&e);     printf("%d\n%ld\n%c\n%.3f\n%.9lf",a,b,c,d,e);      return   0 ; }