03_simplemath.c 209 B

1234567891011121314
  1. #include <math.h>
  2. #include <stdio.h>
  3. int main()
  4. {
  5. int n1, n2;
  6. n1 = 1;
  7. n2 = 2;
  8. printf("%d + %d = %d\n", n1, n2, n1 + n2);
  9. int n3;
  10. n3 = 4;
  11. printf("Square root of %d is %f\n", n3, sqrt(n3));
  12. return 0;
  13. }