Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a C program to find the square of any number using function.
- #include<stdio.h>
- int squre_num(int num)
- {
- int squre;
- squre=num*num;
- return squre;
- }
- int main()
- {
- int num,squre;
- scanf("%d",&num);
- squre=squre_num(num);
- printf("%d",squre);
- return 0;
- }
Add Comment
Please, Sign In to add comment