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

FIND US ON FACEBOOK!