From 53965ad48d3ff8c08b2953a1e3e38a21aeabdea3 Mon Sep 17 00:00:00 2001 From: NatanshSep2 <76418368+NatanshSep2@users.noreply.github.com> Date: Mon, 4 Oct 2021 10:04:31 +0530 Subject: [PATCH] Area ofSquare More understandable --- c/function.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/c/function.c b/c/function.c index 87586b5..0d3a4c4 100644 --- a/c/function.c +++ b/c/function.c @@ -5,7 +5,8 @@ void square(int n); void cube(int n); float percent60(int n); -int main(){ +int main() +{ //declaring variable int n; @@ -21,15 +22,24 @@ int main(){ return 0; } +//========================================================================// + //defining functions -void square(int n){ +void square(int n) +{ printf("Square of %d = %d\n",n,n*n); } -void cube(int n){ +//========================================================================// + +void cube(int n) +{ printf("Cube of %d = %d\n",n,n*n*n); } -float percent60(int n){ +//========================================================================// + +float percent60(int n) +{ return 0.6*n; -} \ No newline at end of file +}