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: 5 & 6 * Assignment Date: 11/6/22 * File Name: Random.cpp ***************************************************************** * ID: Random Number Generator * Purpose: Explain the process to create random numbers *****************************************************************/ #include<iostream> #include <cstdlib> using namespace std; int main() { // Providing a seed value srand((unsigned) time(NULL)); for (int x = 0 ; x< 5 ; x++) { // Get a random number int random = rand() % 9; // Print the random number cout << random << " "; } 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