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… }