Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to print out the squares of numbers, which are ended with 5, including 5, 15, 25, 35, 45, 55, 65, 75, 85,

Write a program to print out the squares of numbers, which are ended with 5, including 5, 15, 25, 35, 45, 55, 65, 75, 85, 95.

The output should be like a simple table, such as: 585 = 25 15*15 = 225 ... 95*95 = 9025

Make sure to print out a simple explanation about what the program is going to do.

Submission should be within a single .txt file, including .py file and running result.

Let's play with this by type it to a new .py file, then run it, see what will happen:

# print_pi_value.py

import math # Makes the math library available.

def main():

print("This program should print the value of pi from math library")

print(math.pi)

main()

Let's also play a memory game:

This is what I can remember about math pi value: pi=3.14159 26 535 897 932 384 626

How about you? Try it for fun! https://www.math.utah.edu/~pa/math/pi.html

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions