fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. const int length = 10;
  5. const int width = 5;
  6. const char *newline = "\n";
  7. int area = length * width;
  8. printf("Value of area : %d%s", area, newline);
  9. printf("Value of area : %d\n", 50); //dá o mesmo resultado
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/262455/101
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
Value of area : 50
Value of area : 50