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.
first i tried my program same as you but failed 3 testcases ,then i tried like this,,,,,,,,,, int main() {
int a;
long int b;
long long int c;
char d;
float e;
double f;
scanf("%d %ld %lld %c %f %lf",&a,&b,&c,&d,&e,&f);
printf("%d\n%ld\n%lld\n%c\n%f\n%lf",a,b,c,d,e,f);
return 0;
}it passed all testcases successfully ,
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
first i tried my program same as you but failed 3 testcases ,then i tried like this,,,,,,,,,, int main() { int a; long int b; long long int c; char d; float e; double f; scanf("%d %ld %lld %c %f %lf",&a,&b,&c,&d,&e,&f); printf("%d\n%ld\n%lld\n%c\n%f\n%lf",a,b,c,d,e,f); return 0; }it passed all testcases successfully ,