Hi im not a programmer but try to learn it. today i want to show you my 1st C++ programming.
Its a simple code which can addition two variables. you can add two number and its produce sum of that.
So, lets start.
It's support : Turbo C++ or Microsoft visual C++ Studio
#include<iostream.h>
float main()
{
float M,N, sum;
cout<<"WWW.EEE-LAB.COM \n";
cout<<"Enter the 1st Number: ";
cin>> M;
cout<<"Enter the 2st Number: ";
cin>> N;
sum=N+M;
cout<<"Sum is="<<sum<<endl;
return 0;
}
#include<iostream.h>
float main() { float M,N, sum; cout<<"WWW.EEE-LAB.COM \n"; cout<<"Enter the 1st Number: "; cin>> M; cout<<"Enter the 2st Number: "; cin>> N; sum=N+M; cout<<"Sum is="<<sum<<endl;
return 0; }
|