online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Rafael Orta * Course: Computer Science & Programming * Class: CS04103 Section: 8 & 9 * Assignment Date: 09/29/19 * File Name: RandomGenerator.cpp ***************************************************************** * Purpose: This program asks the user to enter an integer, representing * the upper limit and generates 10 positive random numbers in range. *****************************************************************/ #include <iostream> using namespace std; int main() { int value = 0, result = 0; cout<<"Enter the upper positive limit: "; cin >> value; srand (time(NULL)); for (int x = 1; x<11 ; x++){ result = rand () % value + 1; cout << "\nThe result no.: " << x << " is " << result; } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue