Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.65K
1 Posted Topic
#include<iostream.h> #include<conio.h> #include<stdlib.h> void main() {int i,j,count=1,a[50],n,p; clrscr(); for(i=1;count<=50;i++) {j=rand(); if(!(j<=0)&&!(j>50)) {p=1; for(n=0;n<count-1;n++) if(a[n]==j) p=0; if(p!=0) { a[count-1]=j; cout<<j<<endl; ++count; } } } getch(); }
The End.
dramatic