#include<stdio.h>
void main()
{
int cnt=0,sum=0,i=1,num;
printf("\n Enter the number for which you want the square root\n");
scanf("%d",&num);
while(sum<num)
{
sum+=i;
i+=2;
cnt+=1;
}
printf("\n The square root of a given no is %d",cnt);
getch();
}
Any small thing looked at a greater depth have excellent structure or pattern behind them
Is Mathematics really Hard?(specially for those who hate it).I have expressed my views regarding mathematics.How Mathematics is associated with all walks of human life.
Everything in the world is connected.This is another nice article related to div tag.
"We know that God exists because mathematics is consistent and we know that the devil exists because we cannot prove the consist"
A Blog for those who want to achieve something in their life
Responses
0 Respones to "how to compute square root of a perfect square just using simple addition only"
Post a Comment