Cpp Dev Programming Forum

Cpp Programming


Post a reply

Write your message and submit
Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

aaa
Today

Main proceedings concerning disaster Smolensk. This event triggered a discussion about the military prosecutor's office. In the background of the matter is a dispute as to the scope of reach by investigators after the billing and text messages, including of journalists.

Code:

    int i,j,ile;
    int tab[10], tab1[10];
    ile=0;
    
    srand(time(NULL));
    for (i=0;i<10;i++)
        {
         tab[i]=rand()%10;
         tab1[i]=rand()%10;
         cout << "tab[" << i <<"] = " << tab[i] << "         "<< "tab1[" << i <<"] = " << tab1[i] << endl;
         ile=ile+tab[i]*tab1[i];      
         }
         cout << "Iloczyn skalarny jest rowny " << ile << endl;

        
    system("PAUSE");
    return EXIT_SUCCESS;

Board footer

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.frag-cs.pun.pl www.bakuganmlodziwojownicy.pun.pl www.impressivehearts.pun.pl www.pokemonunovahistory.pun.pl www.wild-west.pun.pl