Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
void HelloWorld ()
{
cout << "Hello World\n";
}
int main()
#include <iostream>
using namespace std;
void HelloWorld ()
{
cout << "Hello World\n";
}
int main()
void HelloWorld ()
{
cout << "Hello World\n";
}
<script src="//onlinegdb.com/embed/js/BktIqxO48?theme=dark"></script>
// This is a for loop
#include <iostream>
using namespace std;
int main()
{
for (int num = 10; num <=20; num++)
{
// This is a do_while loop
#include <iostream>
using namespace std;
int main()
{
int num = 5;
// This is a while loop
#include <iostream>
using namespace std;
int main()
{
int num = 25;
// This is a while loop
#include <iostream>
using namespace std;
int main()
{
int num = 1;