Berlangganan

About Me


contoh 8

# include <iostream.h>
void main ()

{
    int m = 82, n = 26;
    cout<<m<<" + "<<n<<" = "<<m+n<<endl;
    cout<<m<<" - "<<n<<" = "<<m-n<<endl;
    cout<<m<<" * "<<n<<" = "<<m*n<<endl;
    cout<<m<<" / "<<n<<" = "<<m/n<<endl;
    cout<<m<<" % "<<n<<" = "<<m%n<<endl;
    cout<<"-"<<" = "<<-m<<endl;
 }

output

82 + 26 = 108
82 - 26 = 56
82 * 26 = 2132
82 / 26 = 3
82 % 26 = 4
- = -82

Related Posts :

  • KONSEP DASAR BAHASA C KONSEP DASAR BAHASA C 3 Tujuan Instruksi Umum (TIU): Mampu menghasilkan program yang mengguna… Read More...
  • ARRAY ARRAY 12 Tujuan Instruksi Umum (TIU): Mampu memahami konsep tipe data array dan mampu mengimpl… Read More...
  • KONSEP TIPE DATA KONSEP TIPE DATA 4 Tujuan Instruksi Umum (TIU): Mampu mendeklarasikan variabel dan konstanta d… Read More...
  • FUNGSI REKURSIF FUNGSI REKURSIF 11 Tujuan Instruksi Umum (TIU): Mampu memahami konsep pemrograman modular dan … Read More...
  • POINTER Hasil Running: Input jumlah elamen(maksimum 5) : 3 x[1][1] = 25 x[1][2] = 56 x[1][3] = 12 x[2][1… Read More...

0 Response to "contoh 8"

Post a Comment