A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are some square numbers. Given two numbers a and b you will have to find out how many square numbers are there between a and b (inclusive). Input Each line contains two integers a and b (0 < a

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 13E
icon
Related questions
Question
100%

Please note that the input should be taken from a txt file you can create one with the information provided in the sample input and the output should be written in another txt file. Use python to solve this problem. Please answer as instructed.

 

A square number is an integer number whose square root is also an integer. For
example 1, 4, 81 are some square numbers. Given two numbers a and b you will have
to find out how many square numbers are there between a and b (inclusive).
Input
Each line contains two integers a and b (0 < a<b<100000). Input is terminated by a
line containing two zeroes. This line should not be processed.
Output
For each line of input produclllle one line of output. This line contains an integer which
denotes how many square numbers are there between a and b (inclusive).
Sample Input
14
1 10
0 0
Sample Output
2
Transcribed Image Text:A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are some square numbers. Given two numbers a and b you will have to find out how many square numbers are there between a and b (inclusive). Input Each line contains two integers a and b (0 < a<b<100000). Input is terminated by a line containing two zeroes. This line should not be processed. Output For each line of input produclllle one line of output. This line contains an integer which denotes how many square numbers are there between a and b (inclusive). Sample Input 14 1 10 0 0 Sample Output 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning