fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i, n;
  5. printf("numero: \n");
  6. scanf("%d",&n);
  7. for (n; n>0; n--){
  8. if (n%2==0){
  9. printf("%d\n", n);
  10. }
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5280KB
stdin
12
stdout
numero: 
12
10
8
6
4
2