10) program utk menentukan bil positif/negatif
#include <iostream.h>
void main(){
float x, y;
cout <<"Masukkan bilangan positif atau negatif"<<endl;
cout <<"Nilai x : ";
cin >> x;
cout <<"Nilai y : ";
cin >> y;
if ((x >= 0) && (y >= 0))
cout <<"x dan y bernilai positif" <<endl;
else

Tidak ada komentar:
Posting Komentar