C++ program to find square root of a number

C++ program to find square root of a number 


Heloo guys today i will tell you how to make a C++ program that will find square root of a number..So the coding for this is not big its too small and is:-

_________________________________________________________________________________

#include<iostream>

#include<math.h>

#include<conio.h>

void main()

{

clrscr();

int a,b;

cout<<"Enter the number whose square root you want:";

cin>>a;

b=sqrt(a);

cout<<"\t\t\tThe square root of "<<a<<" will be:"<<b;

getch();

}

_________________________________________________________________________________

So if you want to do more formatting then just go on.. You can also download the codding by clicking on download option

When you will run this program the output screen will be like this:-


If you want any other C++ program coding then comment below!!!

#For more C++ coding visit here

http://codingrockerzz.blogspot.com/




Comments

Popular posts from this blog

C++ program to find factorial

C++ program to make a Fibonacci Series