Napisz program w DEV ktory wczytuje liczby z przedzialu <10,25> w tabele 5x5
#include <iostream>
int main(){ srand(time(NULL));; int tab[5][5]; for(int i=0;i<5;i++) { for(int j=0;j<5;j++) { tab[i][j]=(rand()%16)+10; std::cout << tab[i][j] << "\t"; } std::cout << std::endl; } return 0;}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <iostream>
int main()
{
srand(time(NULL));;
int tab[5][5];
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
tab[i][j]=(rand()%16)+10;
std::cout << tab[i][j] << "\t";
}
std::cout << std::endl;
}
return 0;
}