Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to print
[123]
[456]
[789]
note : braces also need to be printed

Answer Posted / digambar kangude

$k=1;
for($i=1; $i<=3; $i++)
{
echo "[";
for($j=1;$j<=3;$j++)
{
echo $k;
$k++;
}
echo "]";
}

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to test the strpos() return value in php?

936


How to create database connection and query in php?

975


Is php fully object oriented?

877


What is the function in PHP do not return a timestamp?

969


How to test if a variable is an array?

1052


Does cors prevent csrf?

892


What are the different loops in php?

1002


What is faster?

959


Explain about a search-friendly site looks like?

814


What is the latest version of php?

986


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

998


What does a dependant variable mean?

968


What is the difference between for and foreach loop in php?

1038


Can I use php in html?

936


How to call a php function from html button?

1022