Programiz Programiz
Tutorials Examples

Try Programiz PRO

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

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
Programiz Pro Logo

Created with over a decade of experience.

  • Learn
  • Practice
  • Compete
Learn Python
Learn HTML
Learn JavaScript
Learn SQL
Learn DSA
Learn C
Learn C++
Learn Java
View all Courses on Programiz Pro Logo
Python Basics
Python Intermediate
C++ Basics
C++ Intermediate
C++ OOP
C Programming
Java Basics
Java Intermediate
Java OOP
View all Courses on Programiz Pro Logo
Python Challenges
JavaScript Challenges
Java Challenges
C++ Challenges
C Challenges
View all Challenges on Programiz Pro Logo
Learn
Practice
Compete

Certification Courses

Created with over a decade of experience and thousands of feedback.

Learn Python
Learn HTML
Learn JavaScript
Learn SQL
Learn DSA
View all Courses on Programiz Pro Logo
Learn C
Learn C++
Learn Java
Python
JavaScript
TypeScript
SQL
HTML
CSS
C
C++
Java
More languages

Popular Tutorials

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

Reference Materials

string.h
math.h
ctype.h
View all
Python
JavaScript
C
C++
Java
R
Kotlin

Popular Examples

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

    • Getting Started with C
    • Your First C Program
    • C Comments
  • C Fundamentals

    • C Variables, Constants and Literals
    • C Data Types
    • C Input Output (I/O)
    • C Programming Operators
  • C Flow Control

    • C if...else Statement
    • C for Loop
    • C while and do...while Loop
    • C break and continue
    • C switch Statement
    • C goto Statement
  • C Functions

    • C Functions
    • C User-defined functions
    • Types of User-defined Functions in C Programming
    • C Recursion
    • C Storage Class
  • C Programming Arrays

    • C Arrays
    • C Multidimensional Arrays
    • Pass arrays to a function in C
  • C Programming Pointers

    • C Pointers
    • Relationship Between Arrays and Pointers
    • C Pass Addresses and Pointers
    • C Dynamic Memory Allocation
    • C Array and Pointer Examples
  • C Programming Strings

    • C Programming Strings
    • String Manipulations In C Programming Using Library Functions
    • String Examples in C Programming
  • C Structure and Union

    • C struct
    • C structs and Pointers
    • C Structure and Function
    • C Unions
  • C Programming Files

    • C File Handling
    • C Files Examples
  • C Additional Topics

    • C Keywords and Identifiers
    • C Precedence And Associativity Of Operators
    • C Bitwise Operators
    • C Preprocessor and Macros
    • C Standard Library Functions
    • C enums

C Tutorials

  • 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
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

Free Tutorials

  • Python 3 Tutorials
  • SQL Tutorials
  • R Tutorials
  • HTML Tutorials
  • CSS Tutorials
  • JavaScript Tutorials
  • TypeScript Tutorials
  • Java Tutorials
  • C Tutorials
  • C++ Tutorials
  • DSA Tutorials
  • C# Tutorials
  • Golang Tutorials
  • Kotlin Tutorials
  • Swift Tutorials
  • Rust Tutorials
  • Ruby Tutorials

Paid Courses

  • Master Python
  • Learn SQL
  • Learn HTML
  • Master JavaScript
  • Master C
  • Master C++
  • Master Java
  • Master DSA with Python

Online Compilers

  • Python Compiler
  • R Compiler
  • SQL Editor
  • HTML/CSS Editor
  • JavaScript Editor
  • TypeScript Editor
  • Java Compiler
  • C Compiler
  • C++ Compiler
  • C# Compiler
  • Go Compiler
  • PHP Compiler
  • Swift Compiler
  • Rust Compiler
  • Ruby Compiler

Mobile Apps

  • Learn Python App
  • Learn C App
  • Learn Java App
  • Learn C++ App

Company

  • Change Ad Consent
  • Do not sell my data
  • About
  • Contact
  • Blog
  • Youtube
  • Careers
  • Advertising
  • Privacy Policy
  • Terms & Conditions

© Parewa Labs Pvt. Ltd. All rights reserved.