#include <iostream.h> #include <conio.h> int main() { int a; int b; cout << "masukkan dua angka" << endl; cout<<"angka 1:"; cin >> a; cout<<"angka2:"; cin >> b; cout << "nilai terbesar :" << endl; if (a>b) { cout << a << endl; } else { cout << b << endl; } getch(); }
No comments:
Post a Comment