Radoan_Ahmed

Untitled

Jul 5th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. //a C program to find the square of any number using function.
  2. #include<stdio.h>
  3. int squre_num(int num)
  4. {
  5.     int squre;
  6.     squre=num*num;
  7.     return squre;
  8. }
  9. int main()
  10. {
  11.     int num,squre;
  12.     scanf("%d",&num);
  13.     squre=squre_num(num);
  14.     printf("%d",squre);
  15.     return 0;
  16. }
Add Comment
Please, Sign In to add comment