1001 - Another A+B
Description
Give you an integer a, you are to find two another integers which sum is a.InputMultiply Cases. For each line, there is an Integer a.OutputFor each test case, you should two Integers b and c, and b+c=a in each line.Sample Input
10
11
Sample Output
1 9
3 8
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- int a;
- int b,c;
- b = 1;
- while(scanf("%d",&a) != EOF){
- printf("%d %d
",b,a-1);
- }
- }
不要问我为什么