Write a C program to print the following symbol series (front and back slash - 5 times) as given below: / / \ / \ / \ / \ \
Write a C program to print the following symbol series (front and back slash - 5 times) as given below: / / \ / \ / \ / \ \ The program is written in the C language , if you know the basics of C language than you can understand the program easily. If you the code for the same question in other language then please do comment for the help of others. This program will support in any C compiler. //Do follow and subscribe STAR tube //Comment ...If you guys have any alternate method. #include <stdio.h> #include <conio.h> int main() { clrscr; int i,j; for(i=0;i<=5;i++) { if(i==0) { printf("/"); printf("\t"); } else if(i==5) { printf("\\"); printf("\t"); } else { printf("/"); printf("\\"); printf("\t"); } } return 0; getch(); }