Skip to content

Instantly share code, notes, and snippets.

@greengoblinmask
Created June 11, 2014 08:37
Show Gist options
  • Select an option

  • Save greengoblinmask/1ea0dce24264d5562ffd to your computer and use it in GitHub Desktop.

Select an option

Save greengoblinmask/1ea0dce24264d5562ffd to your computer and use it in GitHub Desktop.
#include "stdafx.h"
#include <conio.h>
#include <iostream>
#include <stdio.h>
using namespace std;
void main(){
float sisi, keliling;
cout<<"Input sisi segitiga:";
cin>>sisi;
cout<<"Keliling Segitiga:";
keliling = sisi+sisi+sisi;
cout<<"Kel= "<<sisi<<"+"<<sisi<<"+"<<sisi<<endl;
cout<<"Kel= "<<keliling;
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment