Advertisement
Guest User

simplemath.c

a guest
Mar 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.     int n1, n2;
  7.     n1 = 1;
  8.     n2 = 2;
  9.     printf("%d + %d = %d\n", n1, n2, n1 + n2);
  10.     int n3;
  11.     n3 = 4;
  12.     printf("Square root of %d is %f\n", n3, sqrt(n3));
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement