Code for calculating
square root without
using library function,
of math.h

Answer Posted / darshana

Dim i As Integer

Console.WriteLine("enter the number")
i = Console.ReadLine()

For a As Integer = 0 To 1000
If a * a = i Then
Console.WriteLine(a)
Exit Sub
End If


Next

Is This Answer Correct ?    5 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2215


What is extern storage class in c?

509


Write a C program in Fibonacci series.

629


What is volatile variable how do you declare it?

562


What is function prototype in c language?

610






printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

634


What is property type c?

599


What is a good data structure to use for storing lines of text?

592


What is the size of empty structure in c?

589


What is the difference between malloc calloc and realloc in c?

643


Write a program with dynamically allocation of variable.

600


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1704


What do you understand by friend-functions? How are they used?

641


how do you execute a c program in unix.

636


what is a function method?give example?

1910