C Programs



C Programming is the base of your programming logic. You can find complex problems solutions here and you can also type your c/c++ related programs in comment box and we will try to provide you solutions as soon as possible.

1. Program in C-programming to print the below pattern:


Note: I have made it flexible, enter number like (1,3,5,7,....)

a
ba
aba
baba
ababa




























Run the program and get the below output:

















2. Pattern A and B and X in middle as below with output screen:
























Program is as below:









































3. Pattern Square with A on border as below with output screen:










































Program is as below:






























4. Pattern:


















Program is as below:














No comments:

Post a Comment

Static Keyword in .Net

Static Class: Ø    A static class  cannot  be  instantiated Ø    Only  contains   static members  (property/methods/fields) ...