want 2 print the following in c using loop
|......|
|..c...|
|..ch..|
|..chm..|
pooja.singh.3950 -3 Newbie Poster
Recommended Answers
Jump to Postdo { printf("|......|\n"); printf("|..c...|\n"); printf("|..ch..|\n"); printf("|..chm..|\n"); } while (0);
Jump to PostMaybe a more serious answer is in order..
Try to create a function that will prefix a given character array with "|.." and postfix it with "..|". The character section should always be atleast 2 symbols, use '.' to fill up remaining spaces if needed. (so that would be if …
Jump to PostIt's fine to use. math.h might define M_PI but this is only if
__STRICT_ANSI__
is defined. As a result some implementation might not have it either I think. If it does have it and it's defined, you wouldn't be able to define M_PI yourself when including …
All 11 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
pooja.singh.3950 -3 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
pooja.singh.3950 -3 Newbie Poster
Gonbe 32 Newbie Poster
pooja.singh.3950 commented: thanks for helping me out and can u tell me this using for loop +0
Gonbe 32 Newbie Poster
pooja.singh.3950 -3 Newbie Poster
Gonbe 32 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
pooja.singh.3950 -3 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.