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

0 Response to "contoh 8"

Post a Comment