All pastes #384070 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-06 20:19 UTC
rendered paste body
#include <iostream>
using namespace std;
#include <cstdlib>

int main()
{
    int rivi = 0;
    int maara = 7;
    int lopetus = 0;
    cout<<"Lottorivi generaattori.\n";
    cout<<"Ohje, paina 1, jos haluat generoida uuden rivin\n";
    cout<<"Paina 0, jos haluat lopettaa\n";
    cin>>lopetus;
    cout<<"\n";

    while (rivi == maara && !lopetus) {
          cout<<rand()%39;
          ++rivi;
          }
    system("pause");
    return(0);
}