C Code

Linear Searching Algorithoms and Data Structure

Data Structure and Algorithms  Linear Searching Linear search is a very simple search algorithm. In this type of  search, a sequential search is made over all items one by one. Every item is checked and if a match is…

C Program to Find ASCII Value of a Character

C Program to Find ASCII Value of a Character  In C programming, a character variable holds ASCII value (an integer number between 0 an 127) rather than character itself. You will learn how to find ASCII value of a characte…

Extremely Basic Problem URI Online Judeg

URI Online Judge |1001 Extremely Basic Description : Read 2 variables, named  A  and  B  and make the sum of these two variables, assigning its result to the variable  X . Print  X  as shown below. Print endline aft…

Square-free Number in C

Square-free number A  square-free  number is a  natural number  that contains no powers greater than 1 in its  prime factorization . In other words, if  x  is our number, and  is the prime factorization of  x   into   r   d…

C program find the Good Number

How to Find Good Number in C program.? What is Good Number? A number is called a square free number if there does not  exist a number greater than 1, whose square divides the  number evenly/perfectly. For example, …

How to Find the Good Number in C Program part 2!

Find The Good Number : Code : #include #include int isSquareFree(int n) {     int i;     for(i=2; i<=n; i++)         if(n%i==0)             if(n%(i*i)==0)                 return 0;     …

Largest Number among the Three number !

Example 2: #include void  main() {     int  n1, n2, n3;     printf("Enter three numbers:\n ");     scanf("%d %d %d", &n1, &n2, &n3);     if(n1+=n2 && n2==n3 && n3==n…

C program to Find the Largest Number Among Three Numbers

Find the Largest Number Among Three Numbers :   This is a C program to calculate the  largest number of three numbers; Flow Chart For Finding Largest Number : Program (Source Code): This program uses only if …

تحميل المزيد من المشاركات
لم يتم العثور على أي نتائج