Home > Back-end >  The experimental c
The experimental c

Time:11-14

To set two positive integers and a product range of each integer, interval for [a, b], a, b for the closed interval, (such as input from the keyboard 1, 4, in the middle of the integer of 2, 3, the integer between product for 1 * 2 * 3 * 4=24)
Tip: to define a class, and through the main () function creates an object for testing,
Private members of a class for two data input from the keyboard (integer)
Private:
int a,b;//define the class two private data members
Class member functions into two, a variable assignment for class, another for calculating cumulative
Void the set (int m, int n) {value}
Void the print () {
The process of calculating cumulative
}

CodePudding user response:

This is very simple, learn will it himself

CodePudding user response:

There are people Posting couldn't think of this version
  • Related