Skip to content

Instantly share code, notes, and snippets.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

#include <iostream>
#include <String.h>
using namespace std;
int main(){
char kata[100];
cout<<"Input kata : ";cin.getline(kata,100);
for(int i=0;i<=strlen(kata);i++){
if(kata[i]!=kata[i+1]){
cout<<kata[i];
#include <iostream>
#include <conio.h>
#include <String.h>
using namespace std;
void enkripsi(char kalimat[100]){
int tes,i=0;
while(kalimat[i]!=0){
#include <iostream>
using namespace std;
int loop (int n){
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
if ((i==j)||(i==n)||(j==(n/2)+1)||(j==(n-i)+1)||(i==1)){
cout<<"*";
}else{
cout<<" ";