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


HTML & CSS Web Design

Html Css > Code Examples

Action element Attribute





C Add two numbers and display their sum - C program code input two numbers from user and calculate their sum. C program to add 2 numbers and printing their sum as output. How to add two numbers in C programming.

We shall Determine & Print if the value is - This Code is very simple and a good example of using conditional statement (if-else) in an iteration (i.e. for loop). We shall initiate a for loop having some finite iterations and check

C Coding Replace Lowercase to Uppercase - Accepts the sentence and replaces lowercase characters by uppercase and vice-versa. Take an an English sentence as input and store it in the array "sentence[]". Copy the Last Letter's

C Trim Leading White Spaces from Strings - Program Trim leading white space characters from a string. Remove "Leading Whitespace" characters from the string. Find Last index of whitespace character. White space character

C Language Code Display Prime Numbers - Any whole number which is Greater than 1 & has only two factors that is 1 and the number itself, is called a "Prime Number". Other than these two number it has No Positive Divisor.

Code Illustrate Reading of Data from Files - Program to illustrates reading of data from a file. Program to opens a file which is present. Once the file opens successfully, it uses libc fgetc() library call to read the content. Code

Program calculate & print the value of nCr - In the following C program we are calculating & displaying the value of nCr. nCr can also be represented as C(n,r). C Language function is used to find the factorial of given number and

C++ Return the Structure from a Function - In this C++ example, we have "two functions" one gets the values from user, assign them to structure members and returns the structure and the other function takes that structure as