### C program to find prime numbers

Prime Numbers A prime number is an integer greater than 1 that has exactly two divisors, 1 and itself. The […]

C, tutorial, beginners, programming, ANSI, simple, examples, language basics, literals, data types, functions, loops, arrays, pointers, structures, input and output, memory management, pre-processors, directives.

C program to find power of two numbers using built in functions pow

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/** C program to find power of two numbers using built in functions pow by codebind.com */ #include<stdio.h> #include<conio.h> #include<math.h> int main() { double number; number = pow(2.0, 4.0); printf("Value of 2^4 = %f", number); getch(); } /* OUTPUT Value of 2^4 = 16.000000 */ |

C program find power of number […]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
/** Write a C Program to Find the Number of Digits in an entered number by codebind.com */ #include<stdio.h> #include<string.h> int main() { int num, digits; char ch[10]; printf("\nEnter the Number : "); scanf("%d", &num); sprintf(ch, "%d", num); digits = strlen(ch); printf("\nNumber of Digits : %d\n", digits); return(0); } /* OUTPUT Enter the Number : 54321 Number of Digits : 5 */ |

Swapping numbers in C means exchanging the values of two C variables with each other. In this lesson we will […]

Write a C Program to find if the number is Odd or Even. Basically Even numbers are those which are […]

Write a C program to Make Simple calculator. Write a program and call it calculator.c which is the basic calculator […]

Write a C program , that prints all the Fibonacci numbers , which are smaller than or equal to a […]

Merge sort Merge sort algorithm is one of two important divide-and-conquer sorting algorithms (the other one is quick sort).Merge MergeIt […]

Selection Sort Algorithm using C Selection Sort Repeatedly searches for the largest value in a section of the data Moves […]

Insertion Sort Idea: Start at position 1 and move each element to the left until it is in the correct […]

The bubble sort Algorithm simply compares adjacent elements and exchanges them if they are out of order. To apply the Bubble […]

In this lesson we will learn how to write a source code in C programming language for doing simple quick […]

Writing C Hello world Programs A programmer uses a text editor to create or modify files containing C code. Code […]

Copyright © 2020 | WordPress Theme by MH Themes