C program to check whether a given number is odd or even
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…