Skip to content

Instantly share code, notes, and snippets.

C++ untuk semua

Input, output

#include <iostream> // Dalam ni ada semua function dan file untuk input output C++
//Wajib include ^

// semua karakter selepas '//' adalah comment, tak kisah kat mana
// ini jugak comment
#This file contains example code of diffie hellman key exhange demo
#This is slow for actual usage, this for demo purposes only
def clamp(x, min, max):
if x <= min:
return min
elif x >= max:
return max
return x