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