Answer:
int sum = 0;
for (int i = 1; i < 100; i += 2) {
sum += i * i;
}
printf("The sum of cubes is %d", sum);
/* Prints: The sum of cubes is 166650 */
Explanation:
If 1 should be excluded, let the for loop start at 3.
The answer to this question is:
Interactive sites were usually is right about important topics and comments to a threaded discussion are called"Blogs"
Hoped This Helped, Euniceortiz13
Your Welcome :)
This is for Python
def biggestNum():
array = []
for i in range(8):
number = int(input('Enter number: '))
array.append(number)
return max(array)
print(biggestNum())
Answer:
c) 2^32 times as many values can be represented.
Explanation:
It's funny, this problem comes from a real-life situation, except it wasn't really foreseen :-) And we will encounter a similar problem in less than 20 years.
The difference in terms of storage capacity from 32-bit integers and 64-bits integers is huge.
A 32-bit integer can store (signed) numbers up to 2,147,483,647. (so over 2 BILLIONS)
A 64-bit integer can store (signed) numbers up to 9,223,372,036,854,775,807 (9 BILLIONS of BILLONS)
Answer:
Option b. ArrayList‹Integer› = new ArrayList‹Integer›(10) does not correctly declare an ArrayList.
<u>Explanation</u>:
ArrayList in Java dynamically stores elements in it. It also called as re- sizeable array as it expands in size when elements are added and decreases when an element is removed from it. This array list class also allows to use duplicate and null values.
The syntax for creating Array list is as follows
ArrayList<Type> obj = new ArrayList<Type>()
Type specifies the type of ArrayList like Integer, Character, Boolean etc, and obj is the object name. But in the option b ArrayList‹Integer› = new ArrayList‹Integer›(10) object name is missed and not specified.