kasus 3.1
flowchart
C++
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int A,B;
cout<<"bilangan pertama =";
cin>>A;
cout<<"bilangan kedua =";
cin>>B;
if(A>B)
cout<<"bilangan terbesar :"<<A;
else
cout<<"bilangan terbesar :"<<B;
cout<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Geen opmerkings nie:
Plaas 'n opmerking