codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
//Area of square(with arguments and with return value) #include<stdio.h> #include<conio.h> int main() { int a,c; printf("enter the length of square"); scanf("%d",&a); c=area(); printf("area of square is %d",c); getch(); } area(int a) { int c; c = a*a; return c; }
Private
[
?
]
Run code
Submit