Computer  Programming
posted by Febby1 .
Please how do I compute an algorithm to compute the sum of n integers starting with the K^th integer.
Thanks
A:=0
For i = k to n
Do
Begin
A:= A + i
End
Respond to this Question
Similar Questions

computer science
Algorithm for Binomial Numbers Task Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs: n … 
C Programming
I am trying to find the sum of two integers. I entered the following program into the Visual Studio and it is telling me that there are errors. Can someone tell me where they are please? 
programming
Ancient square root algorithm. The Babylonian algorithm to compute the square root of a number n is as follows: 1. Make a guess at the answer (you can pick n/2 as your initial guess). 2. Compute r = n / guess 3. … 
programming MIPS ask
Write a MIPS assembly language program that will cover the following steps: Prompt the user to enter a first integer named i1 Prompt the user to enter a second integer named i2 Compute i1+i2200 Print the value of the result Repeat … 
programming
Write an algorithm to compute average score for each student in the Computer Science Continuous assessment test. Assume each student sat for ten courses for the semester 
Programming
Write a function that takes one positive integer value (call it n) as a parameter and produces the sum of the integers between 1 and n. Hint: The sum of the integers from 1 to n is n*(n+1) all over 2 I know this is how the function … 
computer programming
Write a fortran program to compute the geometric information for a kite. The program should read the a, c and p lengths and compute the q length 
Algorithm
Pkease who can help? I need to know a pseudocode to display the first n positive integers given n from the user. here is what i tried PROMPT “Please enter n” GET n IF n==1 then DISPLAY “1” WHILE n>1 COMPUTE intiger=n(n1) 
Computer Science/Pseudo Code Python
Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user … 
computer programming
given three numbers A,B,C. draw a flowchart to compute and print out the sum, average and the product of these values.