Tugas Pertemuan 2 Algoritma dan Struktur data
Assalamualaikum wr wb
Raihan Fajarahmatan
NIM : 3420210010
Prodi : Informatika
Pelajaran : Algoritma dan Struktur Data
Lampiran Tugas 1 menggunakan
Web Online https://glot.io/new/cpp
pseudo code in https://glot.io/new/cpp |
#include <iostream>
using namespace std;
int main() {
//Name : Raihan Fajarahmatan
//NIM : 3420210010
//Prodi: Teknik Informatika
cout<<"Ini tugas programan saya.."<<endl;
cout<<"Name :Raihan Fajarahmatan"<<endl;
cout<<"NIM : 3420210010"<<endl;
cout<<"Prodi : Teknik Informatika";
return 0;
Lampiran Tugas 1 menggunakan software Borland C++
pseudo code in Borland C++
#include <iostream.h>
#include <conio.h>
void main() {
//Name : Raihan Fajarahmatan
//NIM : 3420210010
//Prodi: Teknik Informatika
cout<<"Ini Tugas Programan Saya.."<<endl;
cout<<"Name : Raihan Fajarahmatan"<<endl;
cout<<"NIM : 3420210010"<<endl;
cout<<"Prodi : Teknik Informatika";
getch();
}
Lampiran Tugas 2 menggunakan
Web Online https://glot.io/new/cpp
pseudo code in https://glot.io/new/cpp |
#include <iostream>
using namespace std;
/*
Name : Raihan Fajarahmatan
NIM : 3420210010
Prodi : Teknik Informatika
*/
int 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 %.3f",area);
return 0;
}
Lampiran Tugas 2 menggunakan software Borland C++
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
/*
Name : Raihan Fajarahmatan
NIM : 3420210010
Prodi : Teknik Informatika
*/
void main()
{
const float phi = 3.14;
int Finger = 22;
float area;
printf("Finger value is %d \n",Finger);
area = Finger * Finger * phi;
printf("The area of the circle is %.3f",area);
getch();
}
Sekian dan terimakasih
wassalammualaikum wr wb
Komentar
Posting Komentar