Thread
:
C++:Adding two numbers
View Single Post
08-08-2007, 08:40 PM
#
3
(
permalink
)
casanova
The Frozen Nova
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
Re: C++:Adding two numbers
May I know which compiler are you using.
This program will run properly
Quote:
#include<iostream.h>
main ()
{
int a,b,c;
cout<<"Enter two nos:: " ;
cin>>a>>b;
c=a+b;
cout<<"Sum is :: "<<c ;
}
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.
www.nerdweed.blogspot.com
casanova
View Public Profile
Visit casanova's homepage!
Find More Posts by casanova