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 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
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
Mathematics, 27.07.2019 14:30
question
Social Studies, 27.07.2019 14:30
Questions on the website: 13722367