Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes

C Programming Code Examples

C > Functions Code Examples

C Program to Add Two Complex Numbers by Passing Structure to a Function

C++ Programs Converts Decimal to Binary - To convert decimal number to binary number in C++, you have to enter the decimal number to convert it into 'binary number' to print the equivalent value in binary format as shown in

C++ Program to Perform Greedy Coloring - Give all its neighbouring colours a vertex, but before that keep a check on used colours and unused colours. 'Only assign', unused colours to the upcoming vertex. The problem takes a

C++ Converting Centigrade to Fahrenheit - To "convert temperature" from centigrade to Fahrenheit in the C++, you have to ask to the user to enter the temperature in "centigrade" to convert it into Fahrenheit (using fah = (1.8

Calculate Sum of Natural Numbers in C++ - Program takes a "positive integer" from user, then displays the value of '1+2+3+....+n'. This C++ program code assumes that user always enters positive number. So if enters negative

C Program Coding Multiply Two Numbers - Stores two floating point numbers in variable firstNumber and secondNumber respectively. Performs multiplication and stores the result in variable productOfTwoNumbers. Result up

C Program to Simulate a Simple Calculator - This C Program simulates a simple calculator. Program performs arithmatic operations like addtion, subraction, multiplication & division. Assume that the two numbers a&b are given.

C Program Checking Armstrong Numbers - Check for Armstrong Number in C language. Armstrong Number: If sum of cubes of digits of number equal to same given number then the number is called as Armstrong Number.

C++ Program Finds HCF of Two Numbers - To find the HCF ('Highest Common Factor') or GCD (Greatest Common Divisor) of 2 or more numbers, make prime factors of the numbers and choose the common prime factors. Then