Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Square of any number using function
afrinahoque
Jul 8th, 2019
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
square_num
(
int
n
)
{
int
square
;
square
=
n
*
n
;
return
square
;
}
int
main
(
)
{
int
n
,
square
;
scanf
(
"%d"
,&
n
)
;
square
=
square_num
(
n
)
;
printf
(
"%d"
,
square
)
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C# | 45 sec ago | 0.67 KB
Untitled
C# | 1 min ago | 0.43 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 19 min ago | 0.38 KB
Untitled
CSS | 34 min ago | 4.12 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 54 min ago | 0.39 KB
Untitled
C# | 1 hour ago | 1.33 KB
Untitled
Java | 1 hour ago | 3.03 KB
Untitled
Java | 1 hour ago | 0.86 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!