71 : C Program to find square root of a number

Check out the complete list of c-programs : C Program List    

Program to find square root of a given number.

Logic :
sqrt_rt = pow(number,0.5)

 * 1000+ C programs + tutorials
 * 71_c_program_to_find_square_root_of_a_number.c
 *  Created on: Oct 25, 2014
 *  Author: Code2care.org


void main() {


int number;
float sqrt_rt;
   printf("\nC Program to find Square root of a number : \n\n");
   printf("Enter a number to find Square root  : \n");
    sqrt_rt = pow(number,0.5);
   printf("Square root of %d = %f",number,sqrt_rt);

 //    getch(); 


The best way to learn C programming is to practice more and more of programs . Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.

BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.