Q.
Input Format
Input consists of the following space-separated values: int, long, char, float, and double, respectively.
Output Format
Print each element on a new line in the same order it was received as input. Note that the floating point value should be correct up to 3 decimal places and the double to 9 decimal places.
Sample Input
3 12345678912345 a 334.23 14049.30493
Sample Output
3
12345678912345
a
334.230
14049.304930000
My Code:---->
#include <iostream>
#include <cstdio>
#include<iomanip>
using namespace std;
int main() {
// Complete the code.
int i; long l; char c; float f; double d;
cin>>i>>l>>c>>f>>d;
cout<<"\n"<<i<<"\n"<<l<<"\n"<<c<<"\n"<<f<<"\n"<<d;
return 0;
}
Output:--->
Your code did not pass this test case.
Input (stdin)
3 12345678912345 a 334.23 14049.30493
Your Output (stdout)
3
12345678912345
a
334.23
14049.3
Expected Output
3
12345678912345
a
334.230
14049.304930000
Compiler Message
Wrong Answer
Where am i wrong?