My first program! Is it correct? My school's c++ software is still being configured.
Here it is...
#include <iostream.h>
int main ()
{
int n1, n2
cout<<"Enter the number:";
cin>>n1;
cout<<"Enter the second number:";
cin>>n2;
// sum
int sum
sum=n1+n2;
//product
int product
product = n1 * n2;
//differance
int differance
differance = n1\n2;
//output
cout<< "The sum of these numbers are:";
cout<< sum;
cout<< "The diff of these numbers are:";
cout<< differance;
cout<< "The product of these numbers are:";
cout<< product;
return 0;
}
So how wrong is my program? My school sucks so much that I have to write my programs on a friggen piece of paper.