fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x = 0, y = 0, z = 0;
  5. printf("Entre com 2 nĂºmeros: ");
  6. scanf("%i %i", &x, &y);
  7. z = x + y;
  8. printf("\n%i", z);
  9. return 0;
  10. }
Success #stdin #stdout 0s 2160KB
stdin
1
2
stdout
Entre com 2 números: 
3