Square Root without sqrt.h by Command Line Arguments

Write a C program which will calculate the square root of a number without using math.h sqrt() function and print that sqrt to the STDOUT as floating point number with exactly 2 decimal precision.

Note: Please go through Command Line Arguments Post before preparing for these questions. The theory there  for TCS command line Program will help you in better understanding .

#include<stdio.h>
#include<stdlib.h>
int main(int argc, char *argv[])
{
 if(argc==1)
 {
 printf("No arguments");
 return 0;
 }
 else
 {
 int n;
 n=atoi(argv[1]);
 float i=0.00;
 while(i*i<=n)
 {
 i=i+0.001;
 }
 i=i-0.001;
 printf("%.2f",i);
 }
}