Sunday, September 19, 2010

Combat.003 - Initialisation of Variable






//initialization of variables
#include stdio.h
#include iostream
using namespace std;

int main()

{
int a = 5; //initial value = 5;
int b = 2; //initial value is 2
int result; //initial value undetermined

a = a+3;
result = a- b;
cout << "This is the answer we are looking for\n";
cout <<"\n";
cout <<"\n";
cout <<"\n";
cout<< result;
cout <<" thanks\n";
cout <<"\n";
cout <<"\n";
return 0;
}

No comments:

Post a Comment