Berlangganan

About Me


contoh 23

# include <iostream.h>

void main ()
{
 int m =166;
 if (m>1000)
    cout<<m<<" lebih besar dari 1000 "<<endl;
 else if (m>100)
    cout<<m<<" lebih besar dari 100 "<<endl;
 else if (m>10)
    cout<<m<<" lebih besar dari 10 "<<endl;
}

output

166 lebih besar dari 100

Related Posts :

  • contoh 35 # include <iostream.h> /* contoh program transfer by value*/ int tambah(int x); void main()… Read More...
  • contoh 33 # include <iostream.h> void tampilkan_judul(); void main () {     tampilkan_j… Read More...
  • contoh 31 # include <iostream.h> void main () {     cout<<"tes to go"<<endl… Read More...
  • contoh 34 // nama program : clokal_eksternal.cpp // contoh program variabel lokal dan eksternal # include &l… Read More...
  • contoh 32 # include <iostream.h> double hasil ( int A, int B); void main () {   int x,y;   … Read More...

0 Response to "contoh 23"

Post a Comment