Wujud Air
Program Wujud Air dengan Dev C++#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
float A;
cout<<"A :";
cin>>A;
if(A>=0 && A<=100)
cout<<"Cair";
else if(A>100)
cout<<"Uap";
else
cout<<"Padat";
return 0;
}
Langganan:
Posting Komentar
(
Atom
)
Tidak ada komentar :
Posting Komentar