Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- double n;
- scanf("%lf", &n);
- if (n >= 0)
- {
- printf("%lf\n", n * n);
- printf("%lf", sqrt(n));
- }
- else
- {
- printf("Input number again:\n");
- scanf("%lf",&n);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement