online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>The Secret Message Chiper</title> <style> /* Untuk panggil sintaks, langsung ketik nama sintaknya Untuk panggil class, tambahkan titik diawal nama sintaknya Untuk panggil id, tambahkan hashtag diawal nama sintaknya */ body { background-color: rgb(57, 46, 99); color: rgb(166, 84, 221); } .container { margin: 50px auto; padding: 20px; border: 2px solid rgb(116, 57, 255); max-width: 500px; } textarea, input { width: 100%; background-color: rgb(40, 30, 59); color: white; border: 1px solid rgb(181, 168, 255); padding: 10px; margin-bottom: 15px; } button { background-color: rgb(172, 163, 253); cursor: pointer; padding: 10px; border: none; font-weight: bold; } .output { background-color: rgb(60, 60, 60); min-height: 67px; border: 1px solid rgb(142, 139, 194); border-radius: 5px; color: rgb(246, 244, 255); padding: 15px; word-wrap: break-word; } </style> </head> <body> <div class="container"> <h1>The Secret Message Chiper</h1> <label>Secret Message:</label> <textarea name="" id="secretMessage" placeholder="Text message here..."></textarea> <label>Key (Number):</label> <input type="number" name="" id="key" value="1"> <div class="buttons"> <button onclick="process(true)">Enkription (hide message)</button> <button onclick="process(false)">Dekription (show message)</button> </div> <h3>Result:</h3> <div class="output" id="result"></div> </div> <script> function process(isEncrypt) { const text = document.getElementById('secretMessage').value; let key = parseInt(document.getElementById('key').value); let result = ""; if (!isEncrypt) { key = -key; } for (let index = 0; index <text.length; index++) { const element = text[index]; let charCode = text.charCodeAt(index); if (charCode >= 65 && charCode <= 90) { //Huruf Kapital result += String.fromCharCode( ((charCode - 65 + key)% 26 + 26) %26 +65 //A = 65 => ((65 - 65 + 1)% 26 + 65) ) } else if (charCode >= 97 && charCode <= 122) { //Huruf Kapital result += String.fromCharCode( ((charCode - 97 + key)% 26 + 26) %26 +97 ) } else { result += text [index]; } } document.getElementById('result').innerText = result; }; </script> </body> </html>

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