#include <stdio.h>
int main() {
int a,b;
scanf("%d%d",&b,&a);
printf("a=%d\nb=%d",a,b);
return 0;
}
This code reads two integers from the user, storing the first input in variable `b` and the second in variable `a`, then prints them in the order `a=...` and `b=...` on separate lines.
- The `scanf` format reads the first number into `b` and the second into `a`, which swaps the intended meaning of the variables compared to typical usage.
- The `printf` prints `a` first and `b` second, but the user entered the first number for `b` and the second for `a`, so the output shows the numbers in reverse order of input.