From 4d27041e934b442afa40084eab34203d144d45ea Mon Sep 17 00:00:00 2001 From: Navanit Nandakumar <56127564+navanxt@users.noreply.github.com> Date: Sun, 3 Nov 2019 08:37:29 +0530 Subject: [PATCH] sum of two numbers finds the sum of two numbers using c++ --- sumof2numbers.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sumof2numbers.cpp diff --git a/sumof2numbers.cpp b/sumof2numbers.cpp new file mode 100644 index 0000000..10a93b6 --- /dev/null +++ b/sumof2numbers.cpp @@ -0,0 +1,11 @@ +#include +#include //headers +void main() +{ + int x,y; //the two numbers + cout<<"Enter two numbers -" + cin>>x>>y; + int s=x+y; //sum of the two numbers + cout<<"sum of the two numbers is ="<