C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index

 

 

 

 

The C Program Controls: Repetition/Selection/Branching Sample Codes Index Page

 

The following links demonstrate the C program examples on how to use the C program controls. Instead of one-entry, one exit and single flow, the C program execution flows can be branched using repetition and selection constructs.

 

 
 

The C Program Controls: Repetition/Selection/Branching (The C program controls code examples)

  1. Calculating the sum of the given integers using while loop in C programming

  2. Constructing a triangles using characters and nested for loop

  3. Counting grade letters using while and switch-case-break for C programming

  4. Calculating the compound interest for 20 years for the given data in C programming using for loop

  5. Skip printing a number for the given range of number using for loop and continue keyword

  6. Discarding a number for the given range of number using break in for loop of the C program

  7. How to use the C system() function to invoke the DOS prompt and commands

  8. Displaying dummy prompt using the exit() and atexit() C functions

  9. How to use atexit() and getchar() C functions in C programming

  10. Reading and guessing a number using the 'start' and 'goto' C keyword

  11. Discarding the vowels in a string using 'continue' keyword for C programming

  12. Displaying a simple menu in console using C program with while-do constructs

  13. Counting and printing integers from user inputs using array, nested while and for loop

  14. Printing integers from 1 to 12 demonstrating the while loop in C programming

  15. Printing a simple pattern using 2D array row and column of characters

  16. Printing integers from 1 to 10 using for loop C program example

 

 

C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index