Which programming language are you working in?
Here is how you could achieve this in Python:
establish a counter, starting at 1.
While your counter is 10 or less, do two things:
print the counter,
and increase the counter by 1.
code:
counter = 1
while counter <= 10:
print(counter)
counter = counter + 1
Those last two lines should be indented.
Answer:
Here you go, Change it however you'd like :)
Explanation:
import random as r
def play_round(p1, p2):
cards = [1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"]
play1 = r.choice(cards)
play2 = r.choice(cards)
while play1 == play2:
play1 = r.choice(cards)
play2 = r.choice(cards)
if cards.index(play1) > cards.index(play2):
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p1}"
else:
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p2}"
print(play_round("Bob","Joe"))
Answer:
Learning opportunities for AI can be extended to all through the inclussion of courses and different teaching methods related to Artificial Intelligence, new technologies, computer science, programming and, in short, everything related to the digital world, in the educational plans at the national level. This is so because artificial intelligence and computer systems are the basis for the development of the new tools jobs of tomorrow. Thus, education in these subjects is essential so that citizens can enter the labor market once they acquire the necessary age, having the knowledge to do so in a proper way.
Answer:
50%
Explanation:
The markup is the difference between the selling price and the cost price. If the mark up is greater than zero, it means there is a profit, if the markup is less than 0, it means there is a loss and if the markup is equal to 0, it means there is breakeven.
Percentage markup = (markup/cost price) * 100%
Selling price - cost price = markup
15 - cost price = 5
cost price = 10
Percentage markup = (markup/cost price) * 100% = (5/10) * 100% = 50%