1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alina1380 [7]
3 years ago
13

c program that calculates the summation of integers from one to N. Allow the user to input an integer, then pass that number to

a function that will calculate the sum of all integers up to N. For example, if the user inputs the number 5, then the function will return the sum 1 2 3 4 5. Allow the user to enter multiple integers, calling the function for each number. Use a sentinel value or similar method to terminate user input.
Computers and Technology
1 answer:
Talja [164]3 years ago
7 0

Answer:

Answered below.

Explanation:

#include <studio.h>

#include<conio.h>

void main(){

int I = 0;

int sumOfNumbers = 0;

int number;

printf("Input an integer: ");

("%d", &sumOfNumbers);

//Loop over while adding numbers

while(I <= number){

sumOfNumbers = sumOfNumbers + I;

I++;

}

printf("\n Sum of N numbers is: %d", sumOfNumbers);

getch();

}

You might be interested in
Write a function named ilovepython that prints out I love Python three times. Then, call that function.
Brums [2.3K]

Answer:

The program to this question can be described as follows:

Program:

def ilovepython(): #defining a method

   for i in range(3): #defining a loop that print messasge three times

       print('I love Python')#print messasge

ilovepython() #calling the method

Output:

I love Python

I love Python

I love Python

Explanation:

Description of the python program can be described as follows:

  • In the above Python program, a method "ilovepython" is defined, inside the method a for loop is used, inside the loop print method is used, that print the message "I love Python".
  • In python for loop is used to iterate over series and we can execute a set of statements with the loop, tuple, series, once for each element in the list.
8 0
3 years ago
Explain synchronized plug firing.
eimsori [14]
HEY THERE!!

In a camera, flash synchronization is defined as synchronizing the firing of a photographic flash with the opening of the shutter admitting light to photographic film or electronic image sensor. It is often shortened to flash sync  or flash synch.


HOPE IT HELPS
6 0
3 years ago
What is a disadvantage of communicating on social media?
ElenaW [278]

Answer:

Lack of privacy

Explanation:

6 0
3 years ago
2. When creating a formula for balancing a checkbook, what do you subtract from the credits? A. debits B. check numbers C. trans
DIA [1.3K]
I think c transitions
5 0
3 years ago
What is the proper structure of the variable that represents the translatable static text in Template Content?
Lubov Fominskaja [6]

{!Text.VariableName} is the proper structure of the variable that represents the translatable static text in Template Content

A. {!Text.VariableName}

<u>Explanation:</u>

In browser, content translation is possible to translate from one language to other languages, so that the end-user can easily understand the content in their own language.

Normally the text content is translated to the end-user language. As universal containers admin merger the fields so transaction output will be static text.

Suppose in browser  system prompt for translate to default language setting  once the end-user select current web page is translated to selected or default language.

8 0
3 years ago
Other questions:
  • The actual database of active directory shared resources is stored on one or more computers designated as:
    10·1 answer
  • What is a PowerPoint template?
    6·2 answers
  • What is the first thing you should do before constructing a window in the IDE?
    14·1 answer
  • Which table option enables you to combine the contents of several cells into one cell?
    9·2 answers
  • Which of the following is the correct code to link the text "Sunny Days" to the website www.sunnysunshine.com?
    15·1 answer
  • Write a program that asks the user how many numbers will be entered and then has the user enter those numbers. When this is done
    7·1 answer
  • PLEASE HELP!!<br> Would you ever try and get famous off of social media? Why or why not?
    6·2 answers
  • How to enter date in a Date/Time field?​
    8·1 answer
  • In Python, which comparison operator means "less than or equal to"?
    5·2 answers
  • What is the database and presentation for files​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!