{"id":7202,"date":"2023-11-01T12:20:14","date_gmt":"2023-11-01T06:50:14","guid":{"rendered":"https:\/\/python-programs.com\/?p=7202"},"modified":"2023-11-10T12:12:04","modified_gmt":"2023-11-10T06:42:04","slug":"python-program-to-find-the-square-root","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-the-square-root\/","title":{"rendered":"Python Program to Find the Square Root | Square Root in C++"},"content":{"rendered":"

Given a number ,the task is to find the square root of the given number.<\/p>\n

Note : <\/strong><\/p>\n

Square root exists for even complex numbers too.<\/pre>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

number = 16<\/pre>\n

Output:<\/strong><\/p>\n

The Square root of the given number 16 = 4.0<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

number = 4 + 3 j<\/pre>\n

Output:<\/strong><\/p>\n

The Square root of the given number (4+3j) = (2.1213203435596424+0.7071067811865476j)<\/pre>\n

Example3:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

number = 12<\/pre>\n

Output:<\/strong><\/p>\n

The Square root of the given number 12 = 3.4641016151377544<\/pre>\n

Program to Find Square Root of a Number<\/h2>\n