Assalamualaikkum wr.wb
Lampiran Tugas Programming Basic Algoritma
Nama :Reza Hidayatulloh
Nim :3420210019
Prodi :Teknik Informatika
Lampiran tugas 1 menggunakan software Borland C++
Pseudo code in Borland C++
#include <iostream.h>
#include <conio.h>
void main () {
//Name : Reza Hidayatulloh
//Nim : 3420210019
//Prodi: Teknik Informatika
cout<<"this is my first C++ program.."<<endl;
cout<<"Name : Reza Hidayatulloh"<<endl;
cout<<"Nim : 3420210019"<<endl;
cout<<"Prodi: Teknik Informaika";
getch();
}
Lampiran Tugas 2 menggunakan Software Borland C++
pseudo code in Borland C++
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
/*
Name : Reza Hidayatulloh
Nim : 3420210019
Prodi : Teknik Informatika
*/
void main()
{
const float phi = 3.14;
int finger =7;
float area;
printf("finger value is %d \n",finger);
area = finger * finger * phi;
printf("the area of the circle is %.2f",area);
getch();
}
Sekian dan Terima Kasih.
Wassalamualaikum wr.wb
No comments:
Post a Comment