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