IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
CSimple Functions : Stick Figure Drawing
<05.08>
/* Program to Draw a Stick Figure */ #include <stdio.h> void draw_circle(void) { printf(" * \n"); printf(" * * \n"); printf(" * * \n"); } void draw_intersect(void) { printf(" / \\ \n"); /* \\ means \ */ printf(" / \\ \n"); printf(" / \\\n"); } void draw_base(void) { printf(" -------\n"); } void draw_triangle(void) { draw_intersect(); draw_base(); } int main(void) { draw_circle(); draw_triangle(); return (0); }
Hergestellt in Deutschland / Made in Germany
* * * * * / \ / \ / \ -------
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland