Tuesday, November 13, 2012

first program in C++

#include<iostream.h>
#include <conio.h>
int main()
{
        int a,b,c;
        cout<<"enter a 1st number:";
        cin>>a;
        cout<<"enter 2nd number:";
        cin>>b;
        c=a+b;
        cout<<"The sum of two number is:"<<c;
        getch();
        return 0;
}

No comments:

Post a Comment