====================================================
#include <>
#include <>
int main ()
{
//Local Declarations
int a;
int b;
//Statements
printf("Square root of");
scanf("%d",&a);
b=sqrt(a);
printf("%d is the square root of %d",b,a);
return 0;
}
=================================================================
#include <>
#include <>
//Function Declarations
int square (int x);
int main ()
{
//Local Declarations
int a;
int b;
//Statements
printf("Square root of");
scanf("%d",&a);
b=square(a);
printf("%d is the square root of %d",b,a);
return 0;
}
int square (int x)
{
//Statements
return (sqrt(x));
}
====================================================================
No comments:
Post a Comment