Category: C
C Program to Find Largest Element in an Array
This post helps to find largest element in an array using the C programmimg language.
C Program to find if the input character is an Alphabet or not
Problem Write a program in C to check whether the character that was entered by the user is a alphabet or not. How to find if the input character is an alphabet or not in C ? Output Abundantcode.com Coding sample Please enter a character: A A is an alphabet.
C Program to Multiply Two Matrices Using Multi-dimensional Arrays
This post multiplies two matrices using multi-dimensional arrays in the C programming language.
C Program to find if the input is a Armstrong Number or Not
Problem Write a program in C to find if a given number is Armstrong number or not. How to check if a number is a Armstrong number or not in C programming Language ? A given number is a Armstrong number of order n if abc… = an + bn + cn + … For example , 371 is a Armstrong number because the result…
C Program to calculate the power of a number
Problem Write a program in C to calculate and display the power of a number. How to calculate the power of a number in C ? Output Abundantcode.com coding sample Enter the base number: 2 Enter an exponent: 3 Answer = 6
C Program to insert an element into an array
Problem Statement Write a program in C to insert an element in to an array. C Program to insert an element into an array
C Program to Convert Binary Number to Decimal and vice-versa
This post explains the conversion of numbers from binary to decimal and vice versa, using the C programming language.
C Program to display full pyramid using numbers
Problem Write a program in C to print full pyramid using numbers as shown below.The program should take the number of rows as input. 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 How to create and display full pyramid pattern in C using numbers ? Output Abundantcode.com coding samples Enter the limit: 4…
C Program to find if the given number is a Strong Number or not.
Problem Statement You need to write a program in C to find if the given number is a strong number or not. How to find if the given number is a strong number ? What is a strong number ? A number is said to be a strong number when the sum of the factorial of a number’s individual digits are equal to the number…
C Program to find if the Given year is a Leap Year or Not
Problem Write a program in C to check whether a year entered by the user is a leap year or not. How to find if the given Year is a Leap Year or Not in C ? If the Year is divisible exactly by 4 , then it is a Leap Year. Additionally for the century years that ends with 00 , it is a…
C Program to convert Binary Number to Decimal
Problem Write a program in C to convert a binary number to decimal number. How to convert a binary number to decimal number in C ? Output Abundantcode.com Coding samples Enter a binary number: 1101 13 in decimal
C Program to Calculate Average Using Arrays
This post shows how to calculate the average of all the values in the array using C progamming language.
C Program to compare arrays
Problem Statement You need to write a program in C to compare two arrays of characters and display if they are equal or not. How to compare two arrays in C ?
C Program to display Fibonacci Numbers
Problem Write a program in C to display the sequence of Fibonacci numbers of first n numbers entered by the user. How to display Fibonacci sequence in C Language ? Before writing a program to display the Fibonacci sequence , it is important to understand what exactly is the Fibonacci sequence. It is a series where the next number is the sum of the previous…
C Program to convert lower case string to upper case
Problem Statement Write a program in C to convert the given string from lower case to upper case. How to convert a lower case string to upper case string in C ?
C Program to find if a number is odd or even using Conditional Operator
Problem Write a program in C language using the conditional operator to check whether a given number is even or odd. How to check if a Number is Odd or Even in C using conditional operator? An integer that is divisible by 2 is an even number and that is not divisible by 2 is an odd number. Example of even number is 2 ,…
C Program to check number is perfect number or not
Problem Statement Write a program in C to find if the given number is a perfect number or not. A number is said to be a perfect number if it is a positive number and when the sum of its divisors are equal to the number. How to find if the number is a perfect number or not ?
C Program to check if a input number is a prime number or not
Problem Write a program in C to check whether a number is a prime number or not. How to find if a number is a prime number in C ? A Prime Number is a number that is divisible by 1 and by itself. Some of the examples of the prime number are 2 , 3 , 5 etc. Here’s a program in C demonstrating…
C Program to display "Hello, World!"
Problem Write a program in C to display “Hello, World!” on the screen. C Program to display “Hello, World!” in Console Window. In the above example , the #include<stdio.h> is a preprocessor command that informs the compiler to include the stdio.h header file in the program. This header file includes some of the commonly used functions like scanf and printf which are used to read…
C Program to Swap two Numbers
Problem Write a program in C language to swap two numbers using a temporary variable and display the result in the screen. How to Swap two numbers in C using a temporary variable? Output Abundantcode – Swap two numbers using temporary variable Enter First Number: 1 Enter Second Number: 7 FirstNumber = 7.00 SecondNumber = 1.00