fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i,k;
  6. scanf("%d",&i);
  7. k=--i;
  8. printf("k=%d\n",k);
  9. printf("i=%d\n",i);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5316KB
stdin
2
stdout
k=1
i=1