ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Can anyone do this c++ work? I'm willing to pay 8$


  • Please log in to reply
Can anyone do this c++ work? I'm willing to pay 8$

#1

cianest
cianest
    Offline
    0
    Rep
    3
    Likes

    Junkie

  • PipPipPipPipPipPip
Posts: 250
Threads: 8
Joined: May 12, 2019
Credits: 0
Four years registered
#1

This is the work

To realize an algorithm that allows to insert two positive integer values a and n to display on the screen the first n integer values following a. example with a = 7 and n = 3 the sequence 8 9 10 will appear on the screen
Draw a flowchart to represent it and write a c / c ++ program

 

Send me message with the work done and i will pay you via paypal or bitcoin


  • 0

#2

axin1337
axin1337
    Offline
    0
    Rep
    0
    Likes

    Member

  • PipPipPip
Posts: 70
Threads: 1
Joined: Aug 04, 2018
Credits: 0
Five years registered
#2

This is the work

To realize an algorithm that allows to insert two positive integer values a and n to display on the screen the first n integer values following a. example with a = 7 and n = 3 the sequence 8 9 10 will appear on the screen
Draw a flowchart to represent it and write a c / c ++ program

 

Send me message with the work done and i will pay you via paypal or bitcoin

I think I will be able to do this. DM me if you're still looking for this.


  • 0

#3

InfernoGrey
InfernoGrey
    Offline
    -2
    Rep
    -2
    Likes

    Member

  • PipPipPip
Posts: 30
Threads: 2
Joined: May 20, 2019
Credits: 0
Four years registered
#3

i can just pm me


  • 0

#4

bobathan
bobathan
    Offline
    0
    Rep
    1
    Likes

    Lurker

Posts: 5
Threads: 0
Joined: Jun 21, 2019
Credits: 0
Four years registered
#4

I'm assuming someone has already messaged you the correct code. In case anyone wants to know what this would look like, I wrote it myself. Enjoy.

#include <iostream>

int main()
{
	int a;
	int n;

	std::cout << "Enter a: ";
	std::cin >> a;
	while (a < 0)
	{
		std::cout << "please enter a positive number for a:";
		std::cin >> a;
	}

	std::cout << "\nEnter n: ";
	std::cin >> n;
	while (n < 0)
	{
		std::cout << "please enter a positive number for n:";
		std::cin >> n;
	}

	std::cout << "The " << n << " numbers after " << a << " are: ";
	while (n > 0)
	{
		std::cout << ++a << " ";

		--n;
	}
	return 0;
}

  • 1


 Users browsing this thread: