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> /* CSS Untuk panggil sintaks, langsung ketik nama sintaksnya Untuk panggil class, tambahkan titik diawal nama sintaksnya Untuk panggil id, tambahkan hashtag diawal nama sintaksnya */ body{ background-color: rgb(40, 40, 40); color: greenyellow; } .container{ max-width: 500px; border: 2px solid greenyellow; margin: 50px auto; padding: 20px; } textarea, input{ width: 100%; background-color: gray; color: greenyellow; border: 1px solid greenyellow; padding: 10px; margin-bottom: 15px; } button{ background-color: greenyellow; cursor: pointer; padding: 10px; border: none; font-weight: bold; } .output{ min-height: 50px; background-color: grey; padding: 15px; border-radius: 5px; word-wrap: break-word; } </style> </head> <body> <div class="container"> <h1>πŸ•΅οΈβ€β™‚οΈThe Secret Message Chiper</h1> <label for="inputMessage">secret Message</label> <textarea name="" id="secretMessage" placeholder="Text Message here..."></textarea> <label for="KeyNumber">Key (Number)</label> <input type="number" name="" id="KeyNumber"> <button onclick="process(true)">Enkription</button> <button onclick="process(false)">Dekription</button> <h3>Hasil :</h3> <div id="Result" class="output"></div> </div> <script> function process(isEncrypt) { const Text = document.getElementById("secretMessage").value; let key = parseInt(document.getElementById("KeyNumber").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) { Result += String.fromCharCode( ((charCode - 65 + key) % 26 + 26) % 26 + 65 ); } else if (charCode >= 97 && charCode <= 122) { 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