fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int p = 50, q = 0;
  5. while (p % 10) {
  6. --p; ++q;
  7. }
  8. printf("q = %d", q);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
q = 0