Contoh Sederhana C++
#include <conio.h> #include <iosteam.h> #include <math.h> main () { int keliling,y,x; clrscr; cout <<"n+++++++++++++++++++++++++++++++++++++++++++++++++"; cout <<"\n+ Praktikum C Dasar +"; cout <<"\n+ Menghitung Keliling Segi Empat +"; cout <<"\n+++++++++++++++++++++++++++++++++++++++++++++++++"; cout <<"\n"; cout <<"\n"; cout <<"\n"; cout <<"Panjang SegiEmpat : "; cin >> x; cout <<"Lebar SegiEmpat : "; cin >> y; keliling = x+x+y+y; cout <<"\nKeliling : " <<keliling; getch();
0 Comments:
Post a Comment