menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a program that reads in two integers and determines if the first is a multiple of the second. [hint: use the modulus operator.]
asked
Aug 18, 2018
99.7k
views
3
votes
Write a program that reads in two integers and determines if the first is a multiple of the second. [hint: use the modulus operator.]
Computers and Technology
college
Fanick
asked
by
Fanick
8.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
# Written in python
isMult = False
a = int(input("Enter an integer: "))
b = int(input("Enter an integer: "))
if a % b == 0:
isMult = True
print(a, "is a multiple of" , b")
Bluegenetic
answered
Aug 25, 2018
by
Bluegenetic
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Dec 23, 2024
12.1k
views
A program to find the greatest common factor of two numbers will use: a) Object-oriented programming. b) Binary numbers. c) A database. d) The modulus operator.
Jobou
asked
Dec 23, 2024
by
Jobou
7.8k
points
Computers and Technology
high-school
1
answer
4
votes
12.1k
views
asked
Sep 15, 2024
31.8k
views
Modulus operator computes the _________ resulting from integer division
RobertAKARobin
asked
Sep 15, 2024
by
RobertAKARobin
8.1k
points
Computers and Technology
high-school
1
answer
5
votes
31.8k
views
asked
Jan 16, 2019
41.9k
views
The remainder operator ____. a. provides the quotient of integer division b. must follow a division operation c. is also called the modulus operator d. is represented by a forward slash
Miriam Salzer
asked
Jan 16, 2019
by
Miriam Salzer
8.2k
points
Social Studies
high-school
1
answer
2
votes
41.9k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org