Declaration of float

Posted on Posted in C/C++, Programming

Declaration of float   #include <iostream> using namespace std; int main() { //Declaration Of Variable “Value” Using Data Type “Float”… float Value; cout<<“Enter Values In Pont: “; //Getting Values From User… cin>>Value; //Showing Message And Values Given By User… cout<<“Values Stored In Variable Are: “<<Value; //Breaking Lines… cout<<endl<<endl<<endl; system (“Pause”); return 0; }  

Variable Declaration

Posted on Posted in C/C++, Programming

Variable Declaration in C++ #include <iostream> using namespace std; int main() { //Variable Declaration… int A=10, B=12; //Message Output… cout<<“Sum Of A+B= “; //Adding Values And Showing Result… cout<<A+B; //Breaking Line… cout<<endl; system (“Pause”); return 0; }

Message Output

Posted on Posted in C/C++, Programming

C++ basic message output using cout // Calling IOSTREAM LIBrary Header File #include <iostream> //Including The Standard Namespace… using namespace std; //Main Body Start From Here… int main() { //Message Output… cout<<“This Is My First Message…”; //Pause Output Screen… system (“Pause”); //Return Towards The Initilization Of Function… return 0; // Main Body End Here… }