C program to check whether a given number is odd or even
C program to check whether a given number is odd or even

C program to check whether a given number is odd or even

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

Numbers are everywhere checking whether they are even or odd number is a simple problem. Let's solve it by using c programming. C program to check whether a given number…

Continue Reading C program to check whether a given number is odd or even
C Program to Find Roots of a Quadratic Equation
C Program to Find Roots of a Quadratic Equation

C Program to Find Roots of a Quadratic Equation

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

In algebra quadratic equation refers to any equation that can be arranged in the form of ax2+bx+c=0. The formula to solve the quadratic equation is as follows: -b+sqrt(b2-4ac)/2a or -b-sqrt(b2-4ac)/2a…

Continue Reading C Program to Find Roots of a Quadratic Equation

C Program to Swap Two Numbers | 4 Methods

  • Post author:
  • Reading time:3 mins read
  • Post category:C Programs

In this programming tutorial, you will be able to learn how to swap two numbers. There are 4 methods explained. In order to understand the programming examples, you should have…

Continue Reading C Program to Swap Two Numbers | 4 Methods

C Program to Divide Two Integers

  • Post author:
  • Reading time:2 mins read
  • Post category:C Programs

In this example, you will learn how to divide two integers. In order to understand this programming example you should have some knowledge on: C DatatypesC OperatorsC Input-output Operations Divide…

Continue Reading C Program to Divide Two Integers
C Program to Multiply Two Floating-Point Numbers
C Program to Multiply Two Floating-Point Numbers

C Program to Multiply Two Floating-Point Numbers

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

In this programming example, you will learn how to multiply two floating-point numbers using c programming. In this programming example, you will read two floating-point numbers from the user, multiply…

Continue Reading C Program to Multiply Two Floating-Point Numbers
String Length in C Programming
String Length in C Programming

String Length in C Programming

  • Post author:
  • Reading time:2 mins read
  • Post category:C Programs

C Program to Find the Length of a String You can call strlen() function to find the length of an array as shown below: #include<stdio.h> #include<string.h> int main() { char…

Continue Reading String Length in C Programming
C Program to Add Two Integers
C Program to Add Two Integers

C Program to Add Two Integers

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

C program to Add Two Integers Entered by the User #include<stdio.h> int main() { int result,var1,var2; printf("Enter the values for var1 and var2 \n"); scanf("%d %d",&var1,&var2); result=var1+var2;//calculating sum printf("The result…

Continue Reading C Program to Add Two Integers
How to Print a String in C?
How to Print a String in C?

How to Print a String in C?

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

C Program to Print a String Entered by the User #include <stdio.h> int main() { char name[20]; // Character array printf("\n\tC Program to Print a string"); printf("\n\tEnter a string to…

Continue Reading How to Print a String in C?