#include <iostream.h>
int main () {
int a, b, c, d, e, f;
cout<< "masukkan a=";
cin>>a;
d=a/100;
b=a%100;
e=b/10;
c=b%10;
f=c/1;
cout<<"ratusan"<<d<<endl;
cout<<"puluhan"<<e<<endl;
cout<<"satuan"<<f<<endl;
return 0;
}
Selasa, 13 Maret 2012
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar