HACK ME CODE 2

To add two numbers by taking data from user

#inlude<iostream>

using namespace std;

int main()

{

int a,b,sum;

cout<<“Enter first number”;

cin<<a;

cout<<“Enter second number”;

cout<<b;

sum=a+b;

cout<<“Sum of given numbers is”<<sum;

return 0;

}

Published by ryaan

Former student of IIIT Delhi. Beginning a startup. Loves teaching and blogging. Will provide you best of my knowledge.

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free