C++ Program to perform addition of two numbers [DEVCPP/GCC]


//Program to perform addition of two numbers

#include <iostream>

using namespace std;

int main()
{

float a,b; //Declaration

cout<<"ENTER FIRST NUMBER: ";
cin>>a;
cout<<"ENTER SECOND NUMBER: ";
cin>>b;

cout<<"THE SUM OF "<<a<<" AND "<<b<<" IS "<<(a+b);

  return 0;
}



Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer

FIND US ON FACEBOOK!