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.
intmain(){/* Enter your code here. Read input from STDIN. Print output to STDOUT *//*Input consists of the following space-separated values: int, long, char, float, and double, respectively.*/inti;longl;charch;floatf;doublelf;cin>>i>>l>>ch>>f>>lf;/*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 deciplaces and the double to 9 decimal places.*/printf("%i\n%ld\n%c\n%.3f\n%.9lf\n",i,l,ch,f,lf);return0;}
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 →