TAAFT
Free mode
100% free
Freemium
Free Trial
Create tool

Chandan kumar

@chandankumar-1734383882 Tasks: 29
๐Ÿ› ๏ธ 1 tool ๐Ÿ™ 77 karma
Enthusiast
Joined: December 2024

Chandan kumar's tools

  • Pseudocode Generator
    Transform concepts into clear, structured pseudocode.
    Open
    298
    13
    3.6
    77
    Released 9mo ago
    100% Free
    ``` FUNCTION print_pattern(first_row, num_rows) # Define the pattern sequence pattern = [ [7, 8, 9, 1, 2, 3, 4], [4, 3, 2, 1, 9, 8], [8, 9, 1, 2, 3], [3, 2, 1, 9], [9, 1, 2], [2, 1, 9], [9, 1, 2, 3], [3, 2, 1, 9, 8], [8, 9, 1, 2, 3, 4], [4, 3, 2, 1, 9, 8, 7] ] index = 0 FOR i = 1 TO num_rows # Print current pattern row PRINT join(pattern[index], " ") # Move to next row, wrap around if necessary index = (index + 1) MOD LENGTH(pattern) END FOR END FUNCTION # Main program PRINT "Enter the desired number of rows: " INPUT num_rows first_row = [7, 8, 9, 1, 2, 3, 4] CALL print_pattern(first_row, num_rows) ```
0 AIs selected
Clear selection
#
Name
Task