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
bazaltina [42]
3 years ago
7

Display all the natural numbers from 1 to 100 that are exactly divisible by 3 and 7 using FOR … NEXT. Without using Mod

Computers and Technology
1 answer:
Tcecarenko [31]3 years ago
6 0

Answer:

FOR i% = 1 TO 100

 IF ((i%\3) = i%/3) AND ((i%\7) = i%/7)  THEN

   PRINT i%

 END IF

NEXT i%

Explanation:

Of course using MOD would be cleaner, but another way to check if a number is integer divisable is to compare the outcome of an integer division to the outcome of a floating-point division. If they are equal, the division is an integer division.

The program outputs:

21

42

63

84

You might be interested in
The term computer ________ is used to describe someone who is familiar enough with computers to understand their capabilities an
kenny6666 [7]

Answer:

Literate

Explanation:

A computer literate is a person that is high in knowledge and skill with computers, knowing the device inside and out

5 0
4 years ago
A ball is released from a 10 m high roof and bounces two thirds as high on each successive bounce. After traveling a total of 40
skelet666 [1.2K]

Answer:

Four times traveling 40,12345 mts

Explanation:

We can express this as a sum as follows

\sum_{i=1}^4(10\cdot  \frac{2}{3}^{i - 1} + 10\cdot  \frac{2}{3}^{i } ) = 3250/81=40.12345679

The first term is the dropping part and the second is the upward motion. this sums up to 40,12345 m after bouncing four times. As a program we could write using the while loop.

distance=0;

i:=0;

while distance<40 do

i:=i+1;

distance:=distance+ 10\cdot  \frac{2}{3}^{i - 1} + 10\cdot  \frac{2}{3}^{i };

end while;

Here the answer is in i and the closest distance traveled after reaching 40 is in the variable distance.

4 0
4 years ago
Use the paragraph underneath to answer the four questions.
Xelga [282]
Wow...that’s a long paragraph
8 0
3 years ago
Jerry keeps a spreadsheet of all the tools he owns. He wants to figure out
Evgen [1.6K]

Answer:

It's B and C

Explanation:

As because first you have to write the formula in any cell like to write the total if u want to to write in negative than it's B and If u want in positive than it's C. And see the above pictures to get it perfectly

7 0
3 years ago
Read 2 more answers
What do you click to create a new presentation in noral view
stepladder [879]
Go to the top left of the page, there you will see "file" click it and click new:)
4 0
3 years ago
Other questions:
  • If a ≤m b and b is regular, does that imply that a is a regular language? why or why not?
    6·1 answer
  • Risa has a negative credit rating, and she feels obtaining a fresh loan credit is going to be quite difficult for her. Her frien
    15·1 answer
  • Which machine will work best to dig a hole in the soil?
    6·1 answer
  • An algorithmic function that takes an input message of arbitrary length and returns an output of fixed-length is called a(n) ___
    10·1 answer
  • NEED HELP ASAP! BRAINLIEST AND 20 PTS TO CORRECT ANSWER!
    14·1 answer
  • Structured walk-throughs take place throughout the SDLC and are called _____ reviews, depending on the phase in which they occur
    9·1 answer
  • Write a program that extracts the last three items in the list sports and assigns it to the variable last. Make sure to write yo
    9·1 answer
  • Hi there. I need to know that if I take computer fundamentals, will that class teach anything about graphic design or digital de
    9·1 answer
  • Write an expression that evaluates to true if and only if the string variable s does not equal the string literal end.
    5·1 answer
  • Uuhdcnkhbbbbhbnbbbbnnnnnnnnnfddjkjfs
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!