pattern programs

10 Challenging char pattern programs

January 13, 2010 C

Here are 10 pattern type problems statements with solutions. All the programs are written in C language.  This post is a part of the pattern programs series. Write a C program to print the following pattern: A B A C B A D C B A E D C B A

40 comments Read the full article →

10 Challenging number pattern programs in C

November 8, 2009 C

This is a continuation to the series of challenging pattern C programs in Interview Mantra. This set of 10 puzzling programs are of type number patterns. Also read Print Pattern Programs Write a C program to print the following pattern: 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

100 comments Read the full article →

10 Challenging star pattern programs in C

October 19, 2009 C

Computer languages are not as easy as human languages, they need you to become a computer yourself, think like a computer and write an algorithm. Computer programs are fun if you take them up as a challenge, as unsolved puzzles. There is lot of fun in taking up the challenge, understanding the problem, writing an [...]

121 comments Read the full article →

C Interview Programs to print number patterns

April 8, 2009 C

This post has few of basic number pattern programs in C. Question.56(multiplication table) tests the ability to convert an elementary algorithm into a program. Question.57, Question.58 are programs that test the ability of candidate to use nested while/for loops to print special number patterns. Question.59, Question.60 test ability of using simple while/for loops and basics [...]

207 comments Read the full article →