1. Menentukan bilangan terbesar antara dua bilangan bulat.
Analisis :
input : A,B
proses : membandingkan nilai terbesar antara A dan B
output : jika A>B output = A
Jika B>A output = B
Deklarasi :
A,B : integer {input}
A atau B : Integer {output}
Deskripsi :
Read (A,B)
IF A>B, then write (A), Else write (B)
3. PROGRAM C++
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int A;
int B;
raptor_prompt_variable_zzyz ="masukkan nilai A ";
cout << raptor_prompt_variable_zzyz << endl;
cin >> A;
raptor_prompt_variable_zzyz ="masukkan nilai B ";
cout << raptor_prompt_variable_zzyz << endl;
cin >> B;
if (A==B)
{
cout << "kedua bilangan sama besar" << endl; }
else
{