From f28eb2489224dc03f8bcada6057d12e6d9fc5bdb Mon Sep 17 00:00:00 2001 From: Poornapragna Mathh <54894632+poornapragna877@users.noreply.github.com> Date: Thu, 1 Oct 2020 09:47:45 +0530 Subject: [PATCH] Update 30p.c Updated 30p.c --- 30p.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/30p.c b/30p.c index 51929ba..ddf3489 100644 --- a/30p.c +++ b/30p.c @@ -1,9 +1,11 @@ #include +#define fo(x,n) for(int x = 0; x < n; ++x) + int main() { int a, x[6], sum = 0; printf("Enter 6 numbers: "); - for(a = 0; a < 6; ++a) + fo(a,6) { scanf("%d", x+a);