-->
当前位置:首页 > 题库

PROGRAMMING:Some inputs are ignored

Luz5年前 (2021-05-10)题库459
```
Case 03-02-04 some inputs ignored
Case code 03-02-04. C
#include
int main(){
int a,b;
scanf("%d%*d%*2d%d",&a,&b);
printf("a=%d,b=%d",a,b);
return 0;
}
Execute the program, input:
123 4 56789 ↙
Output:
a=123,b=789
```
Analysis of the above code, complete the following topics:
There are five numbers in the input data, but you are required to read only the first, third and fifth numbers, and output the sum of the three numbers.
###Input example:
```in
1 2 3 4 5
```
###Output example:
```out
nine
```
###Input example:
```in
12 25 8 65 7
```
###Output example:
```out
twenty-seven
```







answer:If there is no answer, please comment