IT Lesson
Pages
Home
Showing posts with label
square
.
Show all posts
Showing posts with label
square
.
Show all posts
Tuesday, February 10, 2015
C Program to calculate square root of any number
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float sq,n;
cout<<"Enter any number:";
cin>>n;
sq=sqrt(n);
cout<<"
Square root
of "<<n<<" is "<<sq;
getch();
}
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)