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.
Here's mine using cin and cout instead of scanf and printf
#include<iostream>#include<cstdio>#include<bits/stdc++.h>usingnamespacestd;intmain(){// Complete the code.inta;longlongb;charc;floatd;doublee;cin>>a>>b>>c>>d>>e;cout<<a<<endl;cout<<b<<endl;cout<<c<<endl;cout<<fixed<<setprecision(3)<<d<<endl;cout<<fixed<<setprecision(9)<<e<<endl;return0;}
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
Here's mine using cin and cout instead of scanf and printf