Games

Program to print the pattern of ladder in C-language

#include<stdio.h>

int main ()

{

    int i;

    for(i=1;i<=18;i++)

    {

      printf("   |--|               |--|\n");

        if(i%5==0)

        {

     printf("   |--|---------------|--|\n"); 

       }  

        if(i%5==0)

        {

      printf("   |--|---------------|--|\n"); 

        }   

    }

}

OUTPUT










If you like this program then you can share it and for any issues you can direct contact with me from Home Page.

For regular updates you can also follow my site.

Comments

Post a Comment

Popular posts

Creative pattern of butterfly in C-language

Syntax of C-language

Introduction of C-language.

Language Translator of C-language

Variable & Datatype for C-programming

Errors in C-language

Addition of two numbers in c language

Program to see all ASCII value using for loop in C-language

Program to find the sum of all n elements in an array in C-language