C Program to find whether the given year is leap or not. Leap year is a year, which is containing one extra day, i.e 366 days. In the leap year February contains the date 29. Read more about C Programming Language .
Example programs to solve the problems of Arrays in C, C Program to generate n Fibonacci terms using array declaration. Fibonacci numbers are sequence of numbers starts from 0 and 1 , continue by adding previous number. Example: 0,1,1,2,3,5,8,13,…….. Read more about C Programming Language .
C Program to find whether the given character is Vowel or Consonant. Here, we use the simple if-else statement to check the particular character is Vowel or Consonant. Read more about C Programming Language .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C program to simulate a simple calculator using switch statement. The calculator should be able to perform basic arithmetic operations like addition, subtraction, multiplication, and division only on integers. Error message should be reported, if any attempt is made to divide by zero. (Using switch statement) . Read more about C Programming Language .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C Program to implement Binary search. Binary search technique is simple searching technique which can be applied if the items to be compared are either in ascending order or descending order. The general idea used in binary search is similar to the way we search for the telephone number of a person in the telephone directory. Binary search is the divide and conquer strategy.Read more about C Programming Language.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C Program to convert a given decimal number into its binary equivalent. In this program we convert the given decimal based number system(0, 1, 2, 3, —–,9) to Binary number system(0 and 1). Read more about C Programming Language .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example programs to solve the problems of Arrays in C,
a and b are two integers arrays each with n elements. C program to find the array c such that c[i]=a[i]+b[n-1-i]. Read more about C Programming Language .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C Program to classify the triangle as equilateral, isosceles and scalene. Equilateral triangle means all three side and angles are equal(i.e. 60 degree). Isosceles triangle means any two side and angles are equal. Scalene triangle means , any sides and any angles are not equal. Read more about C Programming Language .