From 5151fee42118f30869d824281b92de223f9fa1dd Mon Sep 17 00:00:00 2001 From: kartiklucky9n <44471525+kartiklucky9n@users.noreply.github.com> Date: Thu, 25 Oct 2018 20:13:23 +0530 Subject: [PATCH] Create coffereally.c --- coffereally.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 coffereally.c diff --git a/coffereally.c b/coffereally.c new file mode 100644 index 0000000..edfaf77 --- /dev/null +++ b/coffereally.c @@ -0,0 +1,25 @@ +#include +int main() +{ + int n; + scanf("%d",&n); + for(int i=n; i>=1;i--) + { + for(int m=65;m<=i+64;m++) + { + printf("%c",m); + } + for(int j=0; j<2*(n-i)-1;j++) + { + printf(" "); + } + for(int o=i+63;o>=65;o--) + { + + printf("%c",o); + + + } + printf("\n"); + } +}