Python JavaScript SQL HTML R C C++ Java RUST Golang Kotlin Swift C# DSA

Learn C practically
and Get Certified.

ENROLL

Popular Tutorials

Data Types in C
C if...else Statement
C for Loop
Arrays in C Programming
Pointers in C
Start Learning C

Popular Examples

Check odd/even number
Find roots of a quadratic equation
Print Pyramids and Patterns
Check prime number
Print the Fibonacci series
Explore C Examples

Reference Materials

string.h
math.h
ctype.h
View all
Learning Paths
Challenges

Learn C Interactively

Try for Free

Courses

Interactive Python Course
Interactive SQL Course
Interactive Java Course
View all Courses
  • Interactive C Course

  • C Introduction

    • Keywords & Identifier
    • Variables & Constants
    • C Data Types
    • C Input/Output
    • C Comments
    • C Operators
    • C Introduction Examples
  • C Flow Control

    • C if...else
    • C for Loop
    • C while Loop
    • C break and continue
    • C switch...case
    • C Programming goto
    • Control Flow Examples
  • C Functions

    • C Programming Functions
    • C User-defined Functions
    • C Function Types
    • C Recursion
    • C Storage Class
    • C Function Examples
  • C Programming Arrays

    • C Programming Arrays
    • C Multi-dimensional Arrays
    • C Arrays & Function
  • C Programming Pointers

    • C Programming Pointers
    • C Pointers & Arrays
    • C Pointers And Functions
    • C Memory Allocation
    • Array & Pointer Examples
  • C Programming Strings

    • C Programming String
    • C String Functions
    • C String Examples
  • Structure And Union

    • C Structure
    • C Struct & Pointers
    • C Struct & Function
    • C Unions
    • C struct Examples
  • C Programming Files

    • C Files Input/Output
    • C Files Examples
  • Additional Topics

    • C Enumeration
    • C Preprocessors
    • C Standard Library
    • C Programming Examples

C Topics

  • Display Armstrong Number Between Two Intervals
  • C Function Examples
  • Display Prime Numbers Between Two Intervals
  • Check Whether a Number is Prime or Not
  • Check Whether a Number can be Expressed as Sum of Two Prime Numbers
  • Check Prime or Armstrong Number Using User-defined Function

C Control Flow Examples

To understand all the examples on this page, you should know about the following topics:

  • if...else Statement
  • for Loop
  • while Loop
  • break and continue
  • switch...case

C Control Flow Examples

Check whether a number is even or odd
Check whether a character is a vowel or consonant
Find the largest number among three numbers
Find all roots of a quadratic equation
Check Whether the Entered Year is Leap Year or not
Check Whether a Number is Positive or Negative or Zero.
Checker whether a character is an alphabet or not
Find the sum of natural numbers
Find factorial of a number
Generate multiplication table
Display Fibonacci series
Find HCF of two numbers
Find LCM of two numbers
Count number of digits of an integer
Reverse a number
Calculate the power of a number
Check whether a number is a palindrome or not
Check whether an integer is prime or Not
Display prime numbers between two intervals
Check Armstrong number
Display Armstrong numbers between two intervals
Display factors of a number
Print pyramids and triangles
Create a simple calculator
Previous Tutorial:
C Programming goto
Next Tutorial:
C Programming Functions
Share on:
Did you find this article helpful?

Sorry about that.


Related Tutorials

C Tutorial

C Function Examples

C Tutorial

C Introduction Examples

C Tutorial

String Examples in C Programming

C Tutorial

C Array and Pointer Examples

We Want To Hear From You!
Learn to Code Survey

ChatGPT is transforming programming education. How has it impacted your learning journey?

Take our 15-min survey to share your experience with ChatGPT.

CLICK TO PARTICIPATE