Python program for Binary Search
Before going to the program first let us understand what is a Binary Search? Binary Search: Binary search is a searching technique used to quickly search the element from the...
Before going to the program first let us understand what is a Binary Search? Binary Search: Binary search is a searching technique used to quickly search the element from the...
To write a program to find first N Prime Numbers in Python we should know how to find whether a Number is Prime Number or Not? To find whether a Number is Prime Number or...
Before going to the program first let us understand what is a Factorial of a Number? Factorial of a Number: The factorial of a Number n, denoted by...
Before going to the program for Prime Number or Not first let us understand what is a Prime Number? Prime Number: A Prime Number is a number greater...
Before going to the program first let us understand what is Anagram? Anagram: An Anagram is the result of rearranging the letters of a word or phrase to produce a new word...
Before going to the program to find Perfect Number or Not first let us understand what is a Perfect Number? Perfect Number: A Perfect Number is a number that is...
Before going to the program for Prime Number or Not first let us understand what is a Prime Number? Prime Number: A Prime Number is a number greater...
Before going to the program first let us understand what is a Armstrong Number? Armstrong Number: An Armstrong number of three digits is an...
Program code to find Reverse of a Number in C: #include<stdio.h> #include<conio.h> void main() { int n,a,r,s=0; clrscr(); printf(“\n Enter The Number:”); scanf(“%d”,&n); a=n; //LOOP FOR FINDING THE REVERSE OF A NUMBER while(n>0) { r=n%10;...
Program code to find Reverse of a Number: #include<iostream.h> #include<conio.h> void main() { int n,a,r,s=0; clrscr(); cout<<“\n Enter The Number:”; cin>>n; a=n; //LOOP FOR FINDING THE REVERSE OF A NUMBER while(n>0) { r=n%10; s=s*10+r; n=n/10;...