subject

Programing in c
1. given int variables k and total that have already been declared , use a for loop to compute the sum of the squares of the first 50 positive integers and store this value in total. thus your code should put 1*1 + 2*2 + 3*3 + + 49*49 + 50*50 into total. use no variables other than k and total.
2. given an int variable k that has already been declared , use a loop to print a single line consisting of 97 asterisks. use no variables other than k.
3. given an int variable k that has already been declared , use a for loop to print a single line consisting of 97 asterisks. use no variables other than k.
4. given an int variable n that has already been declared and initialized to a positive value , and another int variable j that has already been declared , use a for loop to print a single line consisting of n asterisks. thus if n contains 5, five asterisks will be printed. use no variables other than n and j..
5. given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared , use a for loop to compute the sum of the cubes of the first n whole numbers, and store this value in total. thus if nequals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total. use no variables other than n, k, and total.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
When is it appropriate to use an absolute reference
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
Programing in c
1. given int variables k and total that have already been declared , use a for...
Questions
question
Business, 17.03.2021 23:50
question
Biology, 17.03.2021 23:50
question
History, 17.03.2021 23:50
question
History, 17.03.2021 23:50
Questions on the website: 13722363