C Program to Display Hollow Right Angle Triangle Star Pattern and Numbers

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ค. 2024
  • In this C language Pattern Printing tutorial, you will learn to create the Hollow Right Angle Triangle Star and Number Patterns using nested for loops.
    We can modify this programs to display the Hollow Right Angle Triangle star Pattern.
    Tutorial for Printing Right Angle Triangle Star Pattern
    • C Program to Print Rig...
    Here we first ask the user to enter the number of rows for which we have to print the shapes. then we use the for loop to get to each rows of the column.
    After that we use another for loop to get to all the columns needed. And then we display the shape or any character or number that we want to display.
    00:00 Logic for the Pattern
    02:30 Writing Program for Printing Right Angle Triangle Pattern
    07:50 Logic for Hollow Right Angle Triangle Pattern
    our Social Media Pages
    / exampleprogram
    / exampleprogram
    / example_program
    Our Website
    www.ExampleProgram.com
    #ExampleProgram

ความคิดเห็น • 9

  • @dipunkumarpalia9106
    @dipunkumarpalia9106 2 ปีที่แล้ว +2

    Best explanation I had till date ,with a proper logic and without function call statements🤐

  • @sudipkrghosh4976
    @sudipkrghosh4976 2 ปีที่แล้ว +1

    Best explanation. Thank You so much

  • @shraddhabordekar4306
    @shraddhabordekar4306 3 ปีที่แล้ว +1

    👍Thank you

  • @friedchicken338
    @friedchicken338 2 ปีที่แล้ว +2

    hi, what if it required two input like height and the width

    • @ExampleProgram
      @ExampleProgram  2 ปีที่แล้ว +1

      You can add that functionality
      But make sure that proper row no and column no are entered
      Otherwise pattern will not look perfect

  • @necroarmorinyuaru12
    @necroarmorinyuaru12 3 ปีที่แล้ว

    Can t you make it more efficient? like making the for loop not do the entire triangle when you don't need to print stars in the middle? asking for a friend btw