From 7a1e72f32cb6364ca7c5999eb920af9f097e292f Mon Sep 17 00:00:00 2001 From: Yash2001340 <73305427+Yash2001340@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:44:37 +0530 Subject: [PATCH] Create 2ndoct_zigzag_yash2001340.cpp I created zigzag showing numbers code please accept my merge and add it in your repository --- 2ndoct_zigzag_yash2001340.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 2ndoct_zigzag_yash2001340.cpp diff --git a/2ndoct_zigzag_yash2001340.cpp b/2ndoct_zigzag_yash2001340.cpp new file mode 100644 index 0000000..41e4e84 --- /dev/null +++ b/2ndoct_zigzag_yash2001340.cpp @@ -0,0 +1,31 @@ + +#include + +using namespace std; + +int main() +{ + int row,column; + cin>>row>>column; + int sum=(row+column+1)/2; + for(int i=1;i<=row;i++) + { + for(int j=1;j<=column;j++) + { + if(i==j) + { + cout<