Cpp Dev Programming Forum

Cpp Programming


#1 Today

aaa

Guest

Skalar

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.mobileinfantry.pun.pl www.niewielkiazyl.pun.pl www.lksorzelwysoka.pun.pl www.vsmarbar.pun.pl www.sonyericsson4ever.pun.pl