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

• Post author:
• 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…

## How to Convert int to char in C Programming?

• Post author:
• Post category:C Programs

In this example, you will learn to convert an int variable to char type variable. How to convert int to char in c? We can convert an integer to the…

Continue Reading How to Convert int to char in C Programming?

## C Program to Swap Two Numbers | 4 Methods

• Post author:
• 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:
• 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 Find ASCII Value of a Character

• Post author:
• Post category:C Programs

In this programming tutorial, you will be able to learn how to print the asci value of a character. In c programming language, the character variable holds the ASCII value…

Continue Reading C Program to Find ASCII Value of a Character
C Program to Multiply Two Floating-Point Numbers

## C Program to Multiply Two Floating-Point Numbers

• Post author:
• 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

• Post author:
• 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

• Post author:
• 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…