C++ program to print integer value. | पूर्णांक मान मुद्रित करने के लिए C ++ प्रोग्राम।






















C++ program to print integer value.





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

Output:

Display x value: 10




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

Output:

Display x value: 10

If enter x=10.534 float datatype and display x=10 integer datatype display.