Skip to content
  • Home
  • C Tutorial
  • C Programming Examples
  • Interview Questions
    • C Interview Questions
    • Embedded C Interviews
    • Interview Questions On bitwise Operators C
    • Interview Questions On Memory Allocation C
    • Interview Questions on string C
    • Multiple Choice Questions In C
    • C++ Interview Questions
    • I2C Interview Questions
    • Programming Language MCQ
    • Python Interview Questions
    • Can protocol interview questions
    • C# Interview Questions
  • Video Courses
    • Embedded System
      • Mastering Microcontroller
      • Mastering RTOS
      • Embedded Linux
      • Arduino Step by Step
      • Ultimate Guide to Raspberry Pi
      • Electronics and PCB Design
      • VHDL and FPGA Development
      • Learn electricity & electronics
      • PLC Programming From Scratch
    • Data Science Course
      • Data Science Course 2020
      • Machine Learning A-Z
      • Machine Learning, Data Science and Deep Learning
      • Python for machine Learning
      • Statistics for Data Science, Data and Business Analysis
    • Programming Languages
      • C
      • C++
      • HTML and CSS
      • Javascript
      • Java
      • Python
      • Sql
    • Web Development
      • Angular
      • Complete JavaScript Course 2020
      • Modern React with Redux
      • Complete Cyber Security
      • Web Development Bootcamp
      • Web Developer zero to Mastery
    • Game Development
      • Complete C# Unity Developer 2D
      • Complete C# Unity Developer 3D
      • Unreal Engine C++
      • RPG Core Combat Creator
  • Tools
  • Blog
  • MCQ’s
  • Blog Post
  • MCQs
  • RECOMMENDED RESOURCES AND TOOLS FOR BEGINNERS

C program to find LCM and HCF of two numbers

In this example, you will learn to calculate the LCM (Lowest common multiple) and HCF (Highest common factor) of two numbers entered by the user. Prerequisite to understand the below example code: C Programming Operators. C if Statement. C functions. C while loop. Before understanding the code let’s understand what is LCM and HCF. It […]

C program to find LCM and HCF of two numbers Read More »

Write a C program to calculate the value of rPr

The  nPr termed as permutation. They are useful in finding possible permutation of the number in the sets of numbers. To calculate combinations, we will use the formula nPr = n! /  (n – r)! , where n represents the total number of items, and r represents the number of items being chosen at a time.

Write a C program to calculate the value of rPr Read More »

Write a C program to calculate the value of nCr

The nCr also termed as a combination. Combinations are a way to calculate the total outcomes of an event where the order of the outcomes does not matter. To calculate combinations, we will use the formula nCr = n! / r! * (n – r)! , where n represents the total number of items, and

Write a C program to calculate the value of nCr Read More »

C program to check whether the triangle is valid or not if angles are given

Before writing the C program to check whether a triangle is valid or not if angles are given, we should know the properties of triangles. The angle property of the triangle says that the sum of all three angles should be equal to 180. #include <stdio.h> int main() { //variable to store angles int angle1,

C program to check whether the triangle is valid or not if angles are given Read More »

C program to check whether the triangle is isosceles

Before writing the C program to check whether the triangle is isosceles, we should know the properties of equilateral triangles. In geometry, an isosceles triangle is a triangle that has two sides of equal length. #include <stdio.h> int main() { int side1, side2, side3; //Get sides of a triangle from the user printf(“Enter sides of

C program to check whether the triangle is isosceles Read More »

Write C program to check whether the triangle is equilateral

Before writing the C program to check whether the triangle is equilateral, we should know the properties of equilateral triangles. In geometry, an equilateral triangle is a triangle in which all three sides are equal. #include <stdio.h> int main() { int side1, side2, side3; //Get sides of a triangle from the user printf(“Enter sides of

Write C program to check whether the triangle is equilateral Read More »

C program to find largest of three given numbers

C program to find largest of three given numbers is discussed here. Input three integers from the user and find the largest number among them. Given three numbers num1,num2, and num3. The task is to find the largest number among the three. Example, Input: num1= 2, num2 = 18, num3= 10 Output: Largest number =

C program to find largest of three given numbers Read More »

C program to find largest of two given numbers

C program to find largest of two given numbers

C program to find largest of two given numbers is discussed here. Input two integers from the user and find the largest number among them. Given two numbers num1 and num2. The task is to find the largest number among the two. Example, Input: num1 = 2, num1 = 8 Output: Largest number = 8

C program to find largest of two given numbers Read More »

C program to find the sum of digits of a number

  #include<stdio.h> int main() { int num, rem, sum = 0; // Ask user to enter the number printf(“Enter a number: “); // Read two number from the user scanf(“%d”, &num); while(num != 0) { rem = num % 10; sum += rem; num = num / 10; } printf(“sum = %d”, sum); return 0;

C program to find the sum of digits of a number Read More »

Addtion of two numbers in C

C Program to Add two Integer numbers

Given two numbers num1 and num2. The task is to write a program to find the addition of these two numbers. Example, Input: num1 = 10, num2 = 30 Output: 40   In the below C program to add two integer numbers, the program is first asked to enter two numbers. The input number is

C Program to Add two Integer numbers Read More »

← Previous 1 … 50 51 52 … 76 Next →
Best Gift for Programmers,Coders, and Techies

Copyright © 2025 Aticleworld | Powered by Aticleworld