From 6f52ead0c910647913b99cd27f3804c8054eb0bf Mon Sep 17 00:00:00 2001 From: PAVAN864 <71891436+PAVAN864@users.noreply.github.com> Date: Thu, 1 Oct 2020 22:50:41 +0530 Subject: [PATCH] updated syntax added semicolon at the end of the print statements added flower brackets added function type(int) to express formally. added comment line that what will this program do. --- sum.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sum.c b/sum.c index 25f552f..abde1df 100644 --- a/sum.c +++ b/sum.c @@ -1,7 +1,9 @@ #include -main() +int main() { int i,sum=0,value=10; - for(i=0;i