Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=10)
Output
Output a+b
Sample Input
1 2
Sample Output
3
------------------------------------------------------->_<-------------------------------------------------------------------
A+B
1 #include<iostream> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<math.h> 5 #include<algorithm> 6 using namespace std; 7 int a,b; 8 void init() 9 { 10 scanf("%d%d",&a,&b); 11 cout<<a+b<<endl; 12 } 13 int main() 14 { 15 init(); 16 return 0; 17 }
时间: 2024-10-08 11:59:14