fork download
  1. #include <stdio.h>
  2. #include <locale.h>
  3. int main(){
  4. int i = 0;
  5. int x;
  6. int y;
  7. for(i = 1; i <=3; i++){
  8. printf("> %d\n",i);
  9. x = i;
  10. while(x < 5){
  11. y = x + y;
  12. printf(">> %d\n", x);
  13. x++;
  14. }
  15. }
  16. printf("Valor de y: %d", y);
  17. }
  18.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
> 1
>> 1
>> 2
>> 3
>> 4
> 2
>> 2
>> 3
>> 4
> 3
>> 3
>> 4
Valor de y: 821995354