answersLogoWhite

0

#include

using std::cin;
using std::cout;
using std::endl;

int main()
{
int numberM = 0;
cout << endl << "Enter m: ";
cin >> numberM;

int numberN = 0;
cout << endl << "Enter n: ";
cin >> numberN;

for (int i = (numberM + 1); i < numberN; i++)
{
cout << endl << i;

}

cout << endl;
system("PAUSE");
return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


How do you write an algorithm to accept two numbers and divide the first number by second and display their quotent?

To write an algorithm for dividing two numbers, follow these steps: Start by accepting two input numbers, say num1 and num2. Check if num2 is not equal to zero to avoid division by zero errors. If valid, calculate the quotient by dividing num1 by num2 and store the result. Finally, display the quotient. If num2 is zero, display an error message indicating that division by zero is not allowed.


Write cobol program to find sum of two numbers?

1. (B) WRITE A PROGRAM TO FIND THE SUM OF INDIVIDUAL DIGITS IN THE GIVEN 'n'DIGIT DECIMAL NUMBER.IDENTIFICATION DIVISION.PROGRAM-ID. PRO.ENVIRONMENT DIVISION.DATA DIVISION.WORKING-STORAGE SECTION.77 NUM PIC ZZZ9.77 N PIC 9999.77 SUM PIC 9(4) VALUE 0.77 R PIC 9.77 SUM1 PIC Z(4)9.PROCEDURE DIVISION.PARA1.DISPLAY " ENTER THE NUMBER ".ACCEPT N.MOVE N TO NUM.DISPLAY " ".DISPLAY " THE NUMBER IS : " NUM.PERFORM PARA2 UNTIL N = 0.MOVE SUM TO SUM1.DISPLAY " ".DISPLAY " THE SUM OF NUM IS " SUM1.STOP RUN.PARA2.DIVIDE N BY 10 GIVING N REMAINDER R.COMPUTE SUM = SUM + R.OUTPUT:

Related Questions

Accept 5 numbers in an array and display it?

Accept 5 numbers in an array and display it.


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


Write a program in COBOL to find the largest of N number?

identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a &gt; b and a &gt; c display a "is greatest" else if b &gt; c display b "is greatest" else display c "is greatest". display " thank you". stop run.


Draw a flowchart to accept five numbers and display the sum of the numbers?

start, inputbox,inputbox,inputbox,inputbox,inputbox,progresh,display,stop&nbsp;


Draw a flowchart to accept 3 numbers and display the largest number?

draw a flowchart to display the first tenth even number


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


Make a program that will accept any number n between 20-50 and another number x between 1-5 Then the program will display all numbers from 1-n that is divisible by x?

/* a number divisible by x should be a multiple of x */ int i, n,x; scanf ("%d", &amp;n); scanf ("%d",&amp;x); for(i=x;i =&lt; n;i+=x) { printf ("%d", x); }


Flowchart for addition of two numbers?

start accept a,b and c c=a+b display c stop


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Draw a flowchart to accept two numbers and check if the first is divisible by the second?

Convert this in flow chart and see if it can help Start Display "Enter 2 numbers" Accept 2 numbers A &amp; B Divide the A with B Is result Zero? ---- No - A is not Dividable with second Yes - A is Dividable with second End


What is the difference between system specification and a software specification?

The specifications for a software application will be what that application needs to be able to do. The designwill be how the software engineers plan to do it.A simple specification may be something like "This application must be able to take two numbers as input and display their sum."The design could be:# Accept two values via command line # Add values # Display sum or...# Display calculator GUI # Accept two values via mouse input # Add values # Display sum


Write a program to accept n from user and to display all even numbers between 1 to n in javascript?

man mnn g gt grand theft auto or grand theft walrus