Question: Program like a begginer! copy paste from chat gpt is not good solution here! Task 1 1 . Write a program that will calculate the

Program like a begginer! copy paste from chat gpt is not good solution here! Task 11. Write a program that will calculate the factorial of a number
Write the program in two ways: using for and while loops.
Task 12. Analyze the following while loops
```
broj =0
broj =0
while broj 5:
while broj 5:
broj +=2
broj +=1
print(broj)
print(broj)
broj -=1
```
```
broj =10
while broj >0:
broj -=1
print(broj)
if broj 5:
broj +-2
```
Task 13. Guessing the number until it is not hit Implement a number guessing game ranging from 1 to 100. Each guessing attempt consists of an entry Task 14. Leap year
Write a program that asks for a year input and checks if the year is a leap year. A year is a leap year if: is divisible by 4, but not by 100 or
year is divisible by 400
If the year meets these conditions, the program should print the message:
Godina - je prijestupna.
Ako godina nije prijestupna, program treba ispisati poruku:
Godina , nije prijestupna.
Task 15:Write a program that asks the user to enter two numbers ( float) and an operator (\(\left.+,-,{}^{*}, l\right)\). The program should print the result of the operation on the entered numbers in the format:
Rezultat operacije \(5.0+3.0\) je 8.0
Ako korisnik pokua dijeljenje s nulom, program treba ispisati poruku:
Dijeljenje s nulom nije dozvol jeno!
4ko korisnik unese nepodrani operator, program treba ispisati poruku:
Nepodrani operator I|
Program like a begginer! copy paste from chat gpt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!