Skip to content

Instantly share code, notes, and snippets.

View thinkxacademy's full-sized avatar
🎯
Focusing

ThinkX Academy thinkxacademy

🎯
Focusing
View GitHub Profile
@thinkxacademy
thinkxacademy / main.c
Created August 22, 2017 00:49
Algorithm to find square root of a number using Binary Search
//A Program for displaying the square root of a number using binary search.
#include<stdio.h>
#include<stdlib.h>
float binarySearchSquareRoot(int n,int p)
{ int s=0;
int e=n;
float a;int mid;
while(s<=e){