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