Senin, 07 Januari 2013

Program Faktorial

Coding program :
#include <cstdlib>
#include <iostream>

using namespace std;
int main(int argc, char *argv[])
{
    int nilai,fak;
    cout<<"\t Program Faktorial\n\n";
    cout<<"Nama  : Indra Dwi Ananto\n";
    cout<<"Nim   : 09018107 \n";
    cout<<"Kelas : B \n\n";
    cout<<"Masukkan Bilangan : ";
    cin>>fak;
    nilai=1;
    for(int i=1; i<=fak; i++)
    nilai=nilai*i;
    cout<<"==>Hasil dari "<<fak<<"! adalah "<<nilai<<endl<<endl;
    system("PAUSE");
    return EXIT_SUCCESS;
}

hasil running program

1 komentar:

  1. Do you understand there is a 12 word phrase you can speak to your man... that will trigger intense emotions of love and impulsive attractiveness to you buried inside his chest?

    Because hidden in these 12 words is a "secret signal" that triggers a man's instinct to love, idolize and protect you with all his heart...

    12 Words Who Fuel A Man's Love Instinct

    This instinct is so hardwired into a man's brain that it will drive him to try harder than before to make your relationship as strong as it can be.

    Matter of fact, triggering this influential instinct is absolutely important to having the best ever relationship with your man that as soon as you send your man one of these "Secret Signals"...

    ...You will soon find him expose his soul and heart to you in a way he's never expressed before and he will perceive you as the only woman in the world who has ever truly attracted him.

    BalasHapus