C++ Simple Program

c++

If you are using visual studio than this program will work but if you are using Turbo C++ software than you should write  #include<iostream.h> instead of  #include<iostream> and using namespace std are not used i Turbo C++ software.

Guideline:

  1. int means integer which is data type of a variable.
  2. cin stands for console input.
  3. Endl is used for new line.
  4. cout is used for console output.

Program1:

A Program that takes an input as a value of an integer and output this value

#include<iostream>
using namespace std;
void main()
{
int a;
cout<<“enter the value of integer a”<<endl;
cin>>a;
cout<<“the value is:”<<endl;
cout<<a<<endl;

cout<<”                  ***********THANKS VERY MUCH***************                           “<<endl;
}

 

Your comment are valueable