C++ Program to Print an Float (Entered by the User). | सी ++ प्रोग्राम एक फ्लोट प्रिंट करने के लिए (उपयोगकर्ता द्वारा दर्ज)।






















C++ Program to Print an Float (Entered by the User).





#include <iostream> using namespace std; int main() { float x; cout<<"\n Enter x value:"; cin>>x; cout << "\n Display x value : " <<x<<endl; return 0; }

Output:

Enter x value:31.36 Display x value : 31.36