TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Flowgorithm

Print Triangle Pattern Flowchart

Overview

In this tutorial, we will design a Flowgorithm flowchart to print a triangle pattern with the * character. The flowchart will create an output text file and print the pattern. Flowgorithm 3.0 support File Input/Output symbols. This flowchart will print the pattern in the text file.

Print Triangle Pattern

The general steps to create the Flowgorithm flowchart are as follows:

  • Launch Flowgorithm Flowchart.
  • Declare the flowchart variables.
  • Open a text file in write mode.
  • Add two for loops to print the required pattern. The outer for loop iterates from 1-> N.
  • The inner loop iterates from 1 -> <loop counter variable of the outer loop>
  • Develop the line to print with * characters and write to the file in the inner loop. In the outer loop write a new line character.
  • Close the file handle at the end of the flowchart. This will release the file to the operating system.

The flowchart uses some Flowgorithm intrinsic functions for its operation. The functions used in the flowchart are as follows:

  • ToString()
  • Random()
  • ToChar()

Flowchart

 

Print Triangle Pattern Flowchart

Sample Output

Save and run the flowchart. Enter the number of rows to print.

The flowchart will create a file pattern<random_number>.txt text file. Open the file to view the output of the flowchart.

 

Print Triangle Pattern Flowchart Output

 

That’s it. We have successfully designed a flowchart to create a file and print a triangle pattern in the file.

—

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

Flowgorithm Website

For more information on the Flowgorithm tool, please visit the official website at:

http://flowgorithm.org/

Related Posts

Flowgorithm Breakpoint Symbol

Flowgorithm /

Flowgorithm Conditional Breakpoint Statement

File Read Declare Variables

Flowgorithm /

Flowgorithm Read Numbers from File Example

File Search Input File Flowgorithm

Flowgorithm /

Search Text File Flowchart Example

Flowgorithm Turtle Graphics Symbols

Flowgorithm /

Flowgorithm Turtle Graphics Symbols

Draw Circle Flowgorithm Flowchart

Flowgorithm /

Draw Circle using Flowgorithm Turtle

‹ Flowgorithm Conditional Breakpoint Statement

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com