![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.05.2021 02:00 saucyboyFredo
The following code does sum of the triples of even integersfrom 1 through 10
int total = 0;
for (int x = 1; x <= 10; x++){
if (x % 2 == 0)
{ // if x is even
total += x * 3;
}
}// end of for
Please rewrite the above code using InStream
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 12:10, drelisech6467
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 22:00, noeminm105
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag. e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
![image](/tpl/images/cats/informatica.png)
You know the right answer?
The following code does sum of the triples of even integersfrom 1 through 10
int total = 0;
Questions in other subjects:
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/health.png)
Health, 23.09.2019 23:00
![Konu](/tpl/images/cats/istoriya.png)
History, 23.09.2019 23:00
![Konu](/tpl/images/cats/geografiya.png)
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/health.png)
Health, 23.09.2019 23:00
![Konu](/tpl/images/cats/istoriya.png)
History, 23.09.2019 23:00
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/en.png)