free c programming course
Tuesday, 20 December 2011
Addition of two numbers in C++
//Write a Programa Addition of Two Numbers
#include <iostream.h>
#include <conio.h>
void
main
()
{
int
a
,
b
,
c
;
clrscr
();
cout
<<
" Enter A: "
;
cin
>>
a
;
cout
<<
" Enter B: "
;
cin
>>
b
;
c
=
a
+
b
;
cout
<<
"\n Addition is: "
<<
c
;
getch
();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment