Skip to content

A C++ program takes user input to draw either a tree or a smiley face using ASCII art. It defines two functions, `drawTree()` and drawSmiley(), which are called based on the input. If the input is invalid, it displays "Unknown drawing!".

Notifications You must be signed in to change notification settings

prathamp25/AI-Drawing-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

AI-Drawing-Generator

Generates ASCII art based on user input.

This C++ program is an interactive ASCII art generator that prompts the user to enter either "tree" or "smiley" and then prints a corresponding visual representation. It defines two functions, drawTree() and drawSmiley(), which print an ASCII representation of a tree and a smiley face, respectively. In the main() function, the program takes user input and calls the appropriate function based on the input. If the user enters "tree", it displays a small tree, while entering "smiley" prints a smiling face. If the input does not match either of these options, the program outputs "Unknown drawing!". This simple yet engaging program demonstrates basic user input handling, conditional statements, and function usage in C++.

About

A C++ program takes user input to draw either a tree or a smiley face using ASCII art. It defines two functions, `drawTree()` and drawSmiley(), which are called based on the input. If the input is invalid, it displays "Unknown drawing!".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages