// ConsoleApplication13.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace::std; int main() { int a, b, i; cout << "Enter the number of A and B ( a < b ): "; cin >> a >> b; if (a >= b) return -1; cout << "Total: " << b - a + 1 << " numbers.\nNumbers: "; for(i = a; i <= b; i++) cout << i << " "; _gettch(); return 0; }