Selamat datang di Mahasiwa Lugu

Tugas Program Bujur Sangkar

Tuesday, October 2, 20120 komentar


Skript Program :
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
 float s,L;
 cout<<"Nama   : Apriyanto Ramdhan \tNama   : Heru Pramono\n";
 cout<<"NIM    : 12124732          \tNIM    : 12124727\n";
 cout<<"Kelas  : 12.1K.04          \tKelas  : 12.1K.04\n";
 cout<<"=====================================================\n";
 cout<<"              TUGAS LOGIKA DAN ALGORITMA\n";
 cout<<"=====================================================\n";
 cout<<"            MENGHITUNG LUAS BUJUR SANGKAR\n";
 cout<<"=====================================================\n";
 cout<<"Masukkan Panjang Sisi  = ";cin>>s;
 L=s*s;
 cout<<"Luas Bujur Sangkar     = "<<L;
 cout<<" cm";
 getche();
}


Hasil :


Share this article :
Comments
0 Comments

Post a Comment

 

Copyright © 2012. Mahasiswa Lugu™ - All Rights Reserved

Powered by Mahasiswa Lugu