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<