$sudo netselect-apt -t 2 -c IN
Using distribution stable.
Retrieving the list of mirrors from www.debian.org...

--2014-08-31 23:00:07--  http://www.debian.org/mirror/mirrors_full
Resolving www.debian.org (www.debian.org)... 140.211.15.34, 128.31.0.51
Connecting to www.debian.org (www.debian.org)|140.211.15.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 350858 (343K) [text/html]
Saving to: ‘/tmp/netselect-apt.Pjgwxz’

100%[====================================================================================>] 3,50,858     110KB/s   in 3.1s   

2014-08-31 23:00:11 (110 KB/s) - ‘/tmp/netselect-apt.Pjgwxz’ saved [350858/350858]

Choosing a main Debian mirror using netselect.
(will filter only for mirrors in country IN)
Running netselect to choose 2 out of 4 addresses.       
...........
Only found  1 hosts out of  2 requested.
The fastest 2 servers seem to be:

http://debian.mirror.net.in/debian/

Of the hosts tested we choose the fastest valid for HTTP:

http://debian.mirror.net.in/debian/

Writing sources.list.
sources.list exists, moving to sources.list.1409506243
Done.
$

#include <stdio.h>

factorial()
{

int p = 1;
int i = 1;
int n;
printf("Enter a Number greater than 0 \n");
scanf("%d",&n);
while ( i <= n)
{
p = p * i;
i = i + 1;
}

printf("Factorial of the input is %d \n",p);
}
Copyright © 2009,  2010,  2011,  2012,  2013, 2014     BeautifulWork Project    e-mail:  ahiliation@yahoo.co.in
BeautifulWork Project comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.