1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ganezh [65]
1 year ago
5

Write a python program to check whether the number is divisible by 7. If its divisible, print its divisible otherwise find previ

ous number and the next number which is divisible by 7​
Computers and Technology
1 answer:
Stells [14]1 year ago
7 0

f = int(input("Enter a number: "))

if(f%7==0):

   print("It's divisible by 7.")

else:

   if(f<7):

       print("7")

   else:

       print(str(f-(f%7))+", "+str(f+(7-(f%7))))

You might be interested in
Rick is pursuing an undergraduate degree in electronics engineering. He aspires to be a robotics software engineer. Which topic
weeeeeb [17]

Options:

A.  database programming

B.  Embedded C

C.  testing software

D.  ABET

Answer:

<u>B.  Embedded C</u>

Explanation:

<em>Remember,</em> many robotic systems  make use of embedded systems, and one important programming language used is the C (Embedded C) Programming language.

Hence, since many hardware components can be programmed using C, it would therefore be necessary for Rick to be aware of Embedded C.

4 0
2 years ago
Which of these converts analog audio signals into digital codes in a computer?
DaniilM [7]
It would either be A. Audio card or D. Sound card but most likely A
6 0
3 years ago
Read 2 more answers
You just bought a new hard drive for your computer. You plan to use this as a secondary hard drive to store all your UMA files.
Neko [114]
When you get it you need to make Shure the computer knows you have it
4 0
3 years ago
Katla is a project manager. One of the programmers on her team comes to her and says that he permanently deleted some code mista
Aleonysh [2.5K]

Answer:

Version Control - Maintains the code log history and changes overtime.

8 0
3 years ago
ANSWER ASAP GIVING BRAINIEST FIVE STAR AND HEART!
vazorg [7]

Answer : A Formula is a method, statement, or procedure for achieving something, especially reconciling different aims or positions. A function is an activity or purpose natural to or intended for a person or thing. The difference between the two is a function is a piece of code that executes a predefined calculation, while a formula is something you create yourself.

4 0
3 years ago
Read 2 more answers
Other questions:
  • What are the challenges of photographing at night? Why did the photographer “paint” the waterfall with the flashlight?
    9·1 answer
  • Which of the following is the MOST important consideration when planning your budget?
    7·2 answers
  • Which of the following is not true about designing classes? In order for class information to be printed instead of a memory add
    12·1 answer
  • If a database was being used to track sales, a customer who buys a lot of items would be a good example of how two tables could
    14·1 answer
  • Digital printing is not suitable for printing what
    11·1 answer
  • Special computers, called __________, keep databases of IP addresses and their corresponding names
    11·1 answer
  • Write a flowchart and C code for a program that does the following: Uses a do...while loop. Prints the numbers from 1 to 10 with
    13·1 answer
  • Write a Python program to find whether a given number (accept from the user) is positive
    11·1 answer
  • How many bits would be needed to count all of the students in class today? There are 40 students.
    10·1 answer
  • Part B How could installing new technology, such as scrubber machines, affect the factories required to install them? Name a pos
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!