answersLogoWhite

0

create a program that iterates until it finds a perfect number, then store that perfect number into an array. Continue iterating until you find three more. Then, you have an array of four perfect numbers.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a program to find out the square and cube of first ten natural numbers in gw basic?

First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.


What is the first name before of the Java Programming?

The first name of the Java Programming was Oak. It then went by the game Green and finally Java from Java coffee.


What is plankalkul?

Plankalkul is the programming language that was designed by Konrad Zuse. It was the first real computer programming language used for engineering.


What is basic computer programming?

It could be one of two things:Programming using the programming language BASICSimple programs, like the ones that you learn to make when you first start programming, like a hello program.


Why are loops used in Visual BASIC programming?

Loops are one of the most important structures in any programming language. They enable you to repeat certain commands over and over again, as many times as you need instead of having to type in the same command lots of times. Say you wanted to count from 1 to 100 and display the numbers. You could use 100 commands to do it which would be a slow and tedious way. With a loop you can tell the computer to repeat the same command 100 times, and just automatically change the number so that it starts at 1 and keeps on going until it reaches 100. In the slow way you would do something like this: Msgbox("1") Msgbox("2") Msgbox("3") ...and so on up to 100, so you would have 100 lines of colde. With a loop you could do it all in just 3 lines using a FOR loop: For n=1 to 100 Msgbox(n) Next It first gives n the value of 1 and displays it and then gives it the value of 2 and displays it and then gives it the value of 3 and displays it and so on. So it starts at 1 displays it and then goes to the next value, and keeps doing so until it reaches 100. If you then wanted to do it up to 200 or 1000 or whatever, it will still be just those 3 lines of code with just the 100 in the first line changed to whatever value you wanted. Programming is full of repetitive actions, so loops are essential. All languages provide different kinds of loops.

Related Questions

Make a program that displays the first four perfect numbers?

int main (void) { puts ("6 28 496 8128"); return 0; }


What numbers are perfect?

6, 28, 496 and 8128 are the first four Perfect numbers.


Are any of the numbers from 2 to 5 perfect?

No. The first two "perfect numbers" are 6 and 28.


What are some other perfect numbers?

Other than what? The first perfect numbers are 6 and 28.


Is 20 a perfect number in math?

No. In the first hundred numbers, there are only two perfect numbers: 6, and 28.


Is 495 a perfect number?

No, it isn't. In fact, it is not known whether are odd perfect numbers exist. The first perfect numbers are 6, 28, 496, and 8128.


Do you think your perfect with C programming Den tell me how?

The first language you should learn is not C. It is English.


What are the first 20 perfect numbers?

149162536496481100121144169196225256289324361400------------The above numbers are squares not perfect numbers. A perfect number n is one that is equal to the proper divisors of n. Here are the first few:628496812833550336858986905613743869132823058430081399521282658455991569831744654692615953842176191561942608236107294793378084303638130997321548169216I don't know if more of them are known. For more information see oeis.org.


Is 282 a perfect number'?

No. The first four perfect numbers are 6, 28, 496, 8128.


How is 2002 a perfect number?

2002 is not a perfect number. The first four perfect numbers are 6, 28, 496, and 8128.


What are the perfect numbers in order?

The first perfect numbers are 6, 28, 496, 8128.More information here: http://en.wikipedia.org/wiki/Perfect_numberThe first perfect numbers are 6, 28, 496, 8128.More information here: http://en.wikipedia.org/wiki/Perfect_numberThe first perfect numbers are 6, 28, 496, 8128.More information here: http://en.wikipedia.org/wiki/Perfect_numberThe first perfect numbers are 6, 28, 496, 8128.More information here: http://en.wikipedia.org/wiki/Perfect_number


Is the number 42 a perfect number?

No, it is not a perfect number. The first four known perfect numbers are 6, 28, 496 and 8,128.