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
Alex_Xolod [135]
4 years ago
13

Make a program (C++). Sum of a 4 digits number and eliminating last digitsȘ

Computers and Technology
1 answer:
igomit [66]4 years ago
5 0

Answer:

#include <iostream>

#include <string>  

int GetEliminationSum(int number)

{

int sum = 0;

std::string s = std::to_string(number);

while (s.length() > 1)

{

 s = s.substr(1);

 sum += std::stoi(s);  

}

return sum;

}

int main()

{

   std::cout << "Enter your 4-digit number: ";

int number;

std::cin >> number;

std::cout << "The elimination sum is " << GetEliminationSum(number);

}

Explanation:

You might be interested in
Which key doesn't relate to keyboard
igomit [66]

Answer:

Key to your heart

Explanation:

Chia Chia Chia Chia

8 0
3 years ago
Read 2 more answers
HELLO. A computer can only understand the numbers 1 and 2.<br><br> TRUE OR FALSE
dimulka [17.4K]

FALSE

I know they can understand 0's

3 0
3 years ago
Match the definitions to their respective cli hot keys and shortcuts. (not all options are used.)
lord [1]
  • Tab ( Complete omitted commands and parameters )
  • Space bar ( Display the next screen )
  • Up arrow ( Scroll backward through previously entered commands )
  • ? ( Provides context-sensitive help )
  • Ctrl Shift 6 ( Cancel commands such as trace and ping).

What is CLI tools ?

A command line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files, and interact with a computer. A command line interface is also known as a command line user interface, console user interface, or character user interface.

Why do we use CLI tools ?

The CLI is a command line utility that accepts text input and executes operating system functions. In the 1960s,  this was the only way to interact with a computer, as only computer terminals were in use. In the 1970s and 1980s, command line input was widely used on Unix systems and personal computer systems such as MS-DOS and Apple DOS.

To know more about CLI Tools visit here:

brainly.com/question/13263568

#SPJ4

4 0
1 year ago
which of these is a placeholder in a document into which variable data is inserted during the process of a mail merge?
Margarita [4]

Answer: C. Merge Field.

The Merge Field is a placeholder that holds the variable data that will be inserted into the main document during a mail merge procedure. The columns in a document may represent the categories of information. The Rows represent the records of the different columns. The computer counts a row of data to be a single record.

7 0
3 years ago
Read 2 more answers
Lisa has a section of her document that she would like to include in the index. Which option should Lisa choose?
kupik [55]

Answer:

For including a part of the text within the index, you need to make use of the Mark Entry option. And here you can fill the required information for curating your index, you need to just follow the instruction as required, and you will be fine.

Explanation:

Please check the answer.

8 0
3 years ago
Other questions:
  • What does ADF means????
    13·2 answers
  • Que es la fisiconometria?
    10·1 answer
  • What should a consultant recommend to meet this requirement?Universal containers assign its contact center agents to certain int
    12·1 answer
  • When you are cut off in traffic by another driver and you respond by “flipping him the bird,” you are using a type of gesture ca
    7·1 answer
  • Amazon Web Services and Microsoft Azure are some of the most widely used _______.
    7·1 answer
  • HELP AASAP BRAINLIEST JUST HELP
    13·1 answer
  • Select the correct answer.
    10·2 answers
  • Compute the average of a list of user-entered integers representing rolls of two dice. The list ends when 0 is entered. Integers
    12·1 answer
  • Does CLAIRE https://claire-ai.org/vision/ considered a representative of Roy Rotwell's Fifth Generation of innovation?
    7·1 answer
  • Write a program to play an automated game of Rock, Paper, Scissors. Two players make one of three hand signals at the same time.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!