Program menghitung bujur sangkar.
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <math.h>
void main()
#include <conio.h>
#include <math.h>
{
int s, L;
printf("Program menghitung Luas bujur sangkar \n");
puts("\nNama \t : Mohamad fatkurohman");
puts("\nNIM \t : 18123086");
puts("\nKelas \t : 12 1E 21");
cout<<"Masukan nilai sisi \t : ";cin>>s;
cout<<endl;
L=s*s;
cout<<"Nilai luas bujur sangkar \t : "<<L<<endl;
getch();
}
int s, L;
printf("Program menghitung Luas bujur sangkar \n");
puts("\nNama \t : Mohamad fatkurohman");
puts("\nNIM \t : 18123086");
cout<<"Masukan nilai sisi \t : ";cin>>s;
cout<<endl;
L=s*s;
cout<<"Nilai luas bujur sangkar \t : "<<L<<endl;
getch();
}
0 Response to "Program menghitung bujur sangkar."
Posting Komentar