Computers & Internet Logo

Related Topics:

Adornado Jude Posted on Feb 21, 2018

Develop a console c++application which will accept positive integer depending on the user's choice and will determine the common divisors of the input integer. sample output: How many numbers?4 input number 1: 10 input number 2: 50 input number 3: 15 input number 4: 20

1 Related Answer

Anonymous

  • 23 Answers
  • Posted on Dec 19, 2008

SOURCE: c++ problem

I guess this can be done quite easily with stl sort function:
http://www.sgi.com/tech/stl/sort.html
You can also code a sorting algorithm like quicksort or bubblesort yourself. This is quite fun!

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
3answers

Is React JS framework is best for website development?

React is a popular JavaScript library for building user interfaces, and it is often considered one of the best frameworks for web development. However, whether React is the "best" framework for a particular project depends on the specific requirements of that project. That being said, here are some features that make React a strong choice for web development:
  1. Virtual DOM: React uses a virtual DOM, which allows for efficient updates and rendering of components. This can improve the performance of an application, particularly when dealing with large amounts of data.
  2. Reusable Components: React encourages the creation of reusable UI components, which can help to improve the maintainability and organization of an application's code.
  3. JSX: React uses JSX, a syntax that allows developers to write HTML-like code within their JavaScript. This can make the code for a React component more readable and easier to understand.
  4. Strong Community: React has a large and active community of developers, which means that there are many resources available for learning and problem-solving, as well as a wealth of libraries and tools that have been developed specifically for React.
  5. Server-Side Rendering: React can be rendered on the server, which can improve the performance of an application and provide better SEO support.
While these features make React a strong choice for many web development projects, it's important to keep in mind that other frameworks might be a better fit for a specific project, depending on the requirements and constraints of that project.
0helpful
2answers

What is a prime number ?

A prime number is a whole number greater than one which has no divisors except one and itself. A composite number is a whole number greater than one that isn't prime, that is, a product of two or more whole numbers. See http://en.wikipedia.org/wiki/Prime_number
0helpful
1answer

Is zero an integer

0 is an integer number in math, where integer numbers are the infinite set: 500602c6-8540-4def-b9ba-b45092b717e1.gif.

Depending on circumstances, the "natural numbers" and "natural numbers with zero" are also sometimes referred to as integers, quietly dropping the "positive" or "non-negative" property of the set.
0f10d64f-fe8c-49fa-813c-60c2e0c90d07.gif

Note, the former does *not* include 0.
0helpful
1answer

What is the method to write fractions into their lowest forms....for eg.... 10/15?

By fraction I understand that the numerator and denominator are both integers. The way to simplify it by hand is to look for the greatest common divisor of the numerator and denominator and simplify by it.

For example 15/27=(3x5)/(3x9). The greatest common divisor of 15 and 27 is 3. Simplifying by 3, you get 5/9
3helpful
1answer

Question 1: Find out the reasons those have made the UNIX an amazingly successful operating system. What are the Features on existing UNIX based operating systems like Linux Red Hat, Fedora and Ubantu...

Question 4: Consider the following set of processes that arrive in the ready queue at the same time:

Process CPU time

P1 2

P2 1

P3 4

P4 3

P5 1

P6 2



Consider the following scheduling algorithms: FCFS, SJF and Round Robin (quantum = 1)

(i) What is turnaround time of each process for each of the above

scheduling algorithms?

(ii) What is the waiting time of each process for each of the above

algorithms?

0helpful
1answer

Programing of C

Nice try!
Find an upper-class student to give you one-on-one tutoring for your homework.
0helpful
1answer

C++ problem

I guess this can be done quite easily with stl sort function:
http://www.sgi.com/tech/stl/sort.html
You can also code a sorting algorithm like quicksort or bubblesort yourself. This is quite fun!
Not finding what you are looking for?

60 views

Ask a Question

Usually answered in minutes!

Top Symbol Computers & Internet Experts

ZJ Limited
ZJ Limited

Level 3 Expert

17989 Answers

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Ngoro

Level 3 Expert

3521 Answers

Are you a Symbol Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...