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

Declaration of Character

Posted on Posted in C/C++, Programming

Declaration of Character Type Variable using C/C++ #include <iostream> using namespace std; int main() { //Defining Data Type “Char” and Variable Name + Length… char Name[50], Father_Name[50]; //Message Output… cout<<“What Is your Name: “; //Getting Values From User… cin>>Name; cout<<“Enter Your Father Name: “; cin>>Father_Name; cout<<endl<<endl; //Showing Message and Values Stored By User… cout<<“Your Name […]

Declaration of integer

Posted on Posted in C/C++, Programming

Declaration of integer Type Variable in C/C++ #include <iostream> using namespace std; int main() { //Defining Data Type “Int” and Variable “Value”… int Value; //Message Output… cout<<“Enter Some Integers: “; //Getting Values From User… cin>>Value; //Showing Message And Value Stored In Variable… cout<<“Integers You’ve Entered Are: “<<Value; //Breaking Line… cout<<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… }