+ 1
How to write scanf(â%fâ, &a); on C++
I tried to write cin>>&a; But itâs wrong
2 Answers
+ 3
In c++ no need the â&â!
Just use cin >> a;
+ 10
float a;
cin >> a;
// In C++, we don't need to specify the access specifiers like %d, %f, %c, etc. And also we don't need to use '&' symbol while taking input from the user.