From 2a73bb11d84d8722f4057161e9c422da398548f2 Mon Sep 17 00:00:00 2001 From: avneet007e Date: Thu, 10 Oct 2019 16:11:36 +0530 Subject: [PATCH] p3_v.c by avneet --- p3_v.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/p3_v.c b/p3_v.c index e69de29..f0e00c3 100644 --- a/p3_v.c +++ b/p3_v.c @@ -0,0 +1,23 @@ +#include + +int main() { + + int i,j,k,a[100],n,sum; + float avg; + scanf("%d",&n); + i=n; + j=1; +while(i>0) +{ j=1; + while(j<=i) + { + printf("%d ",i); + j++; + } + printf("\n"); + i--; +} + + + return 0; +}