#include <stdio.h> int main (void) { int i,j; for(i=1;i<=10;i++) { if(i%2==1) { for(j=1;j<=2;j++) if(j%2==1) printf("\\"); else printf("/"); } else { for(j=1;j<=2;j++) if(j%2==0) printf("\\"); else printf("/"); } printf("\n"); } system("pause"); return 0; }
The Output is Given Below:
\/ /\ \/ /\ \/ /\ \/ /\ \/ /\
0 comments:
Post a Comment