From 8f9d26c4ad19b49624c3c88c27bf2fe9b92db651 Mon Sep 17 00:00:00 2001 From: punit78 <33447206+punit78@users.noreply.github.com> Date: Wed, 9 Jan 2019 00:41:10 +0530 Subject: [PATCH] Deleted " ++number statement from Floyd's Triangle " (#30858) added "number++" within the printf() --- guide/english/c/loops/index.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/guide/english/c/loops/index.md b/guide/english/c/loops/index.md index 114bbebdf4..f759f10af3 100644 --- a/guide/english/c/loops/index.md +++ b/guide/english/c/loops/index.md @@ -656,11 +656,9 @@ int main() { for(j=1; j <= i; ++j) { - printf("%d ", number); - ++number; - } - - printf("\n"); + printf("%d ", number++); + } + printf("\n"); } return 0;