0

Write a program to take two integers as input and output their sum. Sample Input: 2 8 Sample Output: 10

1st Jun 2021, 2:46 PM
Nomula Hari chakravarthy
Nomula Hari chakravarthy - avatar
7 Respostas
+ 4
Nomula Hari chakravarthy Just learn again how to take integer input. After taking input you just have to add both input.
1st Jun 2021, 3:39 PM
A͢J
A͢J - avatar
3rd Jun 2021, 1:24 AM
Sneha_Gupta✨
Sneha_Gupta✨ - avatar
+ 4
DIY = Do It Yourself
1st Jun 2021, 2:56 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 3
Hi! Please, show us your code attempt! Thx!
1st Jun 2021, 3:35 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
// C Program to add two numbers #include <stdio.h> int main() { int a,b,c ; printf("Enter two numbers\n"); scanf ("%d %d , &a, &b); c = a+b ; printf("Addition of two numbers is %d \n" , c ); return 0 ; }
1st Jun 2021, 6:45 PM
Tejas Raut
0
n,m=map(int, input ().split()) print (n+m)
3rd Jun 2021, 8:22 AM
Abi
Abi - avatar
- 1
#include <iostream> int main(){ int a, b; cout<<"input your first number :"; cin>>a; cout<<"\nNow input you send number : "; cout<<"\nYour answer is "<<a+b; }
3rd Jun 2021, 3:20 AM
ch fi
ch fi - avatar