September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,13 +1,18 @@
|
|||
/*Corrected by Abhishek Ghosh, Mahalaya (19th September) 2017*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
int main(){
|
||||
char array[] = { 'a', 'b', 'c' };
|
||||
char array[] = { 'a', 'b', 'c','d','e','f','g','h','i','j' };
|
||||
int i;
|
||||
time_t t;
|
||||
srand((unsigned)time(&t));
|
||||
|
||||
srand( time( 0 ) );
|
||||
for(i=0;i<30;i++){
|
||||
printf("%c\n", array[rand()%10]);
|
||||
}
|
||||
|
||||
printf( "%c\n", array[ rand() % 3 ] );
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue