From 58cfed3ddb200db6ea4a2d668e3a84665fd73ccd Mon Sep 17 00:00:00 2001 From: abcd-110 <72389367+abcd-110@users.noreply.github.com> Date: Mon, 5 Oct 2020 18:08:47 +0530 Subject: [PATCH] Update sum of two integers.cp --- DSA/sum of two integers.cp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/DSA/sum of two integers.cp b/DSA/sum of two integers.cp index 00ff611..a06dcb0 100644 --- a/DSA/sum of two integers.cp +++ b/DSA/sum of two integers.cp @@ -10,8 +10,11 @@ using namespace std; int main() { - //write code here - - + int a,b; + int sum; + printf("Enter the value of a and b"); + /nscanf("%d %d ", &a&b); + sum=a+b; + printf("Sum =%d",sum); return 0; }