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.
- Prepare
- C++
- Introduction
- Basic Data Types
- Discussions
Basic Data Types
Basic Data Types
Sort by
recency
|
1494 Discussions
|
Please Login in order to post a comment
include
include
using namespace std;
int main() { int s; long w; char ch; float d; double r; scanf("%d %ld %c %f %lf", &s, &w, &ch, &d, &r); printf("%d\n%ld\n%c\n%f\n%lf\n", s, w, ch, d, r); return 0; }
{ #include < iomanip > } add it in header files.
int main() { /* look up Kaashiv infotech's Internship in chennai for cse students for more */
int d; int long ld; char c; float f; double lf; cin>>d; cin>>ld; cin>> c; cin>>f; cin>>lf;
cout<
}
Improved C++ code;