Question

Create your own while loop using PHP and HTML via Notepad++. Your while loop does not...

Create your own while loop using PHP and HTML via Notepad++. Your while loop does not have to completely function, meaning it doesnt have to process a lot. Just create a loop along with some other mini things in HTML like a few outputs when run. as long as your syntax is correct.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

/******************main.php**************/

<!DOCTYPE html>
<html>
<body>

<?php
$n = 1;

echo "Table of 5: <br>";
while($n <= 10) {
echo "$n * 5 = ", $n*5," <br>";
$n++;
}
?>

</body>
</html>
/***********************output******************/

Table of 5:
1 * 5 = 5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
10 * 5 = 50

Table of 5: 1 * 5 = 5 2* 5 = 10 3*5= 15 4*5= 20 5*5= 25 6* 5 = 30 7 *5= 35 8 * 5 = 40 9 * 5 = 45 10 * 5 = 50

Please let me know if you have any doubt or modify the answer, Thanks :)

Add a comment
Know the answer?
Add Answer to:
Create your own while loop using PHP and HTML via Notepad++. Your while loop does not...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Chapter 2 Review Required Data File: healthy.png Create a new HTML file in Notepad++ with the...

    Chapter 2 Review Required Data File: healthy.png Create a new HTML file in Notepad++ with the title Lab 2 . Save the file as Review 2. In the body section, add an <h1> heading, Healthy Living Plan. Format the heading to use the heading 1 style centered-aligned on the Web page. Add the centered paragraph of text shown in Figure 2 below. Add a horizontal rule with a height of 10 pixel, a width of 80%, and a background color...

  • In this assignment, you will use your basic JavaScript knowledge to create an interactive component to...

    In this assignment, you will use your basic JavaScript knowledge to create an interactive component to your client’s website. This interactive element should be based on one of your CTAs. What does this mean? Think about one of the things that you want to do to get your visitors engaged with your site. Then create a form that the visitor will fill out and to which you will provide some response. Your form should be specific to your website CTA....

  • Create your own unique While-End or (For End) repetition C code. You decide the theme. Be...

    Create your own unique While-End or (For End) repetition C code. You decide the theme. Be sure to provide an overview of what your repetition structure is doing. Please keep the design simple for this exercise. Just a few lines of code is all that is needed for this response. This should be code you wrote for an application that is interesting to you. In other words, make it your own and have fun with it. Provide the C code...

  • You shall write a very basic web server in Javascript that will run via nodejs. Your...

    You shall write a very basic web server in Javascript that will run via nodejs. Your project shall include the following line: var paul   = require('/homes/paul/HTML/CS316/p3_req.js'); Your project will accept HTTP requests via URLs in the following format:       /[a-zA-Z0-9_]*.cgi Here are the steps you must perform for .cgi URLs: 1) call http .createserver(myprocess) my process() is a function you will write to process requests from the user via their browser 2) create a mylisten() function that takes the following parameters:...

  • Project 1. Dog Door You are asked to create a dog door for a client. You...

    Project 1. Dog Door You are asked to create a dog door for a client. You are programming the remote that will do things such as open and close, etc. You must create both the program and write a white paper explaining your design • It should open (saying "The dog door is open.") and close (saying "The dog door is closed.). • It should take into account a dog going outside and coming back in; it should open when...

  • Check the true statement(s) about enum types. 1 When you print an enum literal (one of your enum "members"), the...

    Check the true statement(s) about enum types. 1 When you print an enum literal (one of your enum "members"), the default behavior is that the display will show both the enum's valueand the enum's name. 2 To create your own enum sub-type, you have to do two things: import Enum from the enum module. Use subclassing syntax to "inherite" from the Enum type (or some subclass of that type). 3 All enums have a natural ordering, so we can use...

  • Create a NOTEPAD or PDF file that restates the problem in your own words, specifies what input is needed, w...

    Create a NOTEPAD or PDF file that restates the problem in your own words, specifies what input is needed, what output is expected, the step by step process (algorithm) to get the output from the input, and test data (input for which you know the expected output) for each of the 3 problems given below. You should not write any actual C++ code. Make sure the problem statement is in your own words and is descriptive enough so someone not...

  • Please respond to 2 of your classmate's post. Please make responses rich in meaning and well...

    Please respond to 2 of your classmate's post. Please make responses rich in meaning and well constructed to the post you are responding to - Please note Great answer and I agree are not rich in meaning Event design is like a blank canvas because it is an abstract process. There are a lot of things that are taken into consideration such as venue, target audience, budget, etc. The first example is the physical environment of the event. Each space...

  • Your goal of this assignment is to create a mini shopping page with a form and...

    Your goal of this assignment is to create a mini shopping page with a form and math calculations. Your web page should capture the users First Name, Last Name, Street Address, City, State, and Zip Code. It should ask them how many items they wish to buy. It should present them with a list of at least 3 items with different prices - they need to pick one. It will then alert them to what their customer information (name and...

  • (1 point) Using an if Statement In a Loop A common thing to do is to...

    (1 point) Using an if Statement In a Loop A common thing to do is to use variables to keep track of some sort of count. When used in a loop we count things very quickly. Scenario: If you roll a pair of dice, rolling a 12 (two sixes) is rare. How rare? If you were to roll a pair of dice 1,000 times, on average, how many times would it come up as 12? To figure this out, we...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT