All pastes #927639 Raw Edit

zadanie1

public cpp v1 · immutable
·published 2008-03-04 13:38 UTC
rendered paste body
#include <iostream.h>#include <stdlib.h>#include <dos.h>#include <conio.h>int min = 1000;int max = -1000;int tab[15];void main(void){	clrscr();  randomize();  sleep(1);  for(int i=0; i<15; i++)  {	tab[i] =(-900 + rand()%1800);	cout << tab[i] << endl;        //sleep(1);  }  for(i=0; i<15; i++)  {	cout << tab[i] << endl;  }  for(i=0; i<15; i++)  {	if(tab[i] > max)  max = tab[i];	if(tab[i] < min)  min = tab[i];  }  cout << "Min:" << min << endl;  cout << "Max:" << max << endl;  getch();}