请高手出些练习题
我是初学“数据库与算法”,刚刚把线性表的内容(顺序表﹑单链表)学完,想请高手出些练习算法的题~~~
程序代码:#include<iostream>
using namespace std;
int main()
{
int j[100];
for(int h=1;h<100;h++)
{
for(int i=2;i<=h;h++)
if(h%i==0)
{
}
else
{
cout<<h<<"是素数"<<endl;
if(h>100)
{
break;
}
}
}
}