fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num1, num2;
  5.  
  6. printf("NĂºmeros del 1 al 9 de dos en dos:\n");
  7. int i = 1;
  8. while (i <= 9) {
  9. printf("%d ", i);
  10. i = i + 2;
  11. }
  12. printf("\n");
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Números del 1 al 9 de dos en dos:
1 3 5 7 9