Program Percabangan












#include <iostream.h>
#include <conio.h>

int main()
{
    float ip;
    cout << "Masukan Nilai :";
    cin >> ip;
    cout <<endl;

    if (ip>4)
    cout << "\tAngka\t" <<ip<< "\tLebih Dari\t 4" <<endl;

    if (ip<4)
    cout << "\tAngka\t" <<ip<< "\tKurang Dari\t 4" <<endl;

    else
    cout << "\tAngka\t" <<ip<< "\tSama Dengan\t 4" <<endl;


getch();
return 0;
}

0 Response to " Program Percabangan "