C/C++ Example Code |
ARMSTRON.C - Write a program to find whether the given number is an armstrong number.
ARMSTRWF.C - Write a program using functions to print armstrong series numbers.
BIN2DEC.C - Write a program to convert the given binary number to a decimal number.
BUBSORT.C - Write a program to sort the given array in descending order using bubble sort.
BUBSORWF.C - Write a program to sort the given array in descending order using bubble sort within a function.
CONCATST.C - Write a program to concatenate two given strings without using string functions
DEC2BIN.C - Write a program to convert the given decimal number to binary number.
DELELAR.C - Write a program to delete the given element which may be present at any position from the given array
FACTORIA.C - Write a program to find the factorial of the given number
FACTORS.C - Write a program to print the factors of the given number
FIBOAR.C - Write a program to find the fibonacci numbers upto a given limit and store it in an array
FIBOWF.C - Write a program to find the fibonacci numbers upto a given limit using functions
HCFLCMWF.C - Write a program to find the HCF and LCM of the given numbers using functions
INITIALS.C - Write a program to print the initials of a given name.
INOUTSTC.C - Write a program to input and print name, department, roll number and marks of five students using structure
INSELAR.C - Write a program to insert the given element at the given position in the given array
LARSMAR.C - Write a program to find the largest and smallest element in the given array
LARSMARF.C - Write a program to find the largest and smallest number in the given array using functions
LARSMLN.C - Write a program to find the largest and smallest number among the given elements
LARTHNIF.C - Write a program to find the largest among three numbers
LARTHNTR.C - Write a program to find the largest between two numbers using tarnary operator
LARTNIF.C - Write a program to find the largest between two numbers
LARTNTR.C - Write a program to find the largest between two numbers using tarnary operator
LENSTRWF.C - Write a program to find the length of a string without using string functions
LINSEARC.C - Write a program to find whether a given element is present in the given array
MATRXADD.C - Write a program to add two matrices
MATRXPRO.C - Write a program to find the product of two matrices
MATSUMDG.C - Write a program to find the sum of the diagonals of the given matrix
MERGESOR.C - Write a program to sort two arrays and combine them into one array using mergesort
NATSERIE.C - Write a program to find the sum of natural numbers upto a given limit
NETSAL.C - Write a program to find the net salary of the employee.
basic salary --> input from user
da = 22% of basic salary
hra = 15% of basic salary
pf = 12% of (basic salary + da)
medical = Rs.300
gross salary = da+hra+hra+medical
net salary = gross salary - pf
NONFIBAR.C - Write a program to print the non fibonacci numbers between 0 and a given limit
OCT2DEC.C - Write a program to convert the given octal number to the corresponding decimal number
ODDSERIE.C - Write a program to find the sum of odd numbers upto a given limit
PALINDR.C - Write a program to find whether the given number is a palindrome or not.
PALINDRU.C - Write a program to find whether the given number is a palindrome or not using functions.
PERFCTWF.C - Write a program to find whether the given number is a perfect number or not using functions.
PERFECTN.C - Write a program to find whether the given number is a perfect number or not.
PRIME100.C - Write a program to print the prime numbers between 1 and 100
PRIMENO.C - Write a program to find whether the given number is a prime numbers
QUADRATI.C - Write a program to find the solutions of the given quadratic equation.
QUADWF.C - Write a program to find the solutions of the given quadratic equation using function.
REVELMAR.C - Write a program to reverse the elements of the givven array
REVNO.C - Write a program to reverse the digits of a number
STAR1.C - Write a program to print the following pattern:
* ** *** **** *****
STAR2.C - Write a program to print the following pattern:
***** **** *** ** *
STAR3.C - Write a program to print the following pattern:
***** **** *** ** *
STAR4.C - Write a program to print the following pattern:
* ** *** **** *****
STAR5.C - Write a program to print the following pattern:
* *** ***** ******* *********
STAR6.C - Write a program to print the following pattern:
********* ******* ***** *** *
STAR7.C - Write a program to print the following pattern:
* *** ***** ******* ********* ******* ***** *** *
STREVWF.C - Write a program to reverse the given string without using functions
STRUCTA1.C - Write a program to input the name, department, roll number and marks of 5 students using structure and print the details of those students who have scored above 750
STRUCTA2.C - Write a program to show student database using data structure.
STSWAPWF.C - Write a program to swap the two given strings without using string function
SUM5SER3.C - Write a program to find the sum of the following series:
S = 1 + 6 + 11 + 16 + .....
SUMAVGAR.C - Write a program to find the sum and average of n elements given by the user stored in an array
SUMAVGN.C - Write a program to find the sum and average of n elements given by the user
SUMDIGIT.C - Write a program to find the sum of the digits of the given number
SUMEVEN.C - Write a program to find the sum of the even numbers upto the given range as well as sum of first 50 even numbers
SUMNNAT.C - Write a program to find the sum of natural numbers upto a given limit
SUMODD.C - Write a program to find the sum of the first 50 odd numbers as well as the sum of the first n odd numbers(n being provided by user)
SWAP2AR.C - Write a program to swap the elements of two given arrays
SWAPNTV.C - Write a program to swap the values of two numbers without using a third variable
SWAPWTV.C - Write a program to swap the values of two numbers using a third variable
TRANSMAT.C - Write a program to find the transpose of the given matrix
XCHG.C - Write a program to exchange two variables in C without third variable or stack or cpu register.
BST.C - Write a binary search tree demo program to insert a new node and display the sorted list.
RLL.C - Write a C program to reverse a single linked list without any second list.