Advertisement
Guest User

simplemath.c

a guest
Aug 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 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("ingrese un numero\n");
  10.     printf("%d + %d = %d\n", n1, n2, n1 + n2);
  11.     int n3;
  12.     n3 = 4;
  13.     printf("Square root of %d is %f\n", n3, sqrt(n3));
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement