June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,18 +1,14 @@
|
|||
/*Corrected by Abhishek Ghosh, Mahalaya (19th September) 2017*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
int main() {
|
||||
int main(){
|
||||
time_t t;
|
||||
int a;
|
||||
srand((unsigned)time(&t));
|
||||
|
||||
for (;;) {
|
||||
a = rand()%20;
|
||||
printf("%d\n", a);
|
||||
if (a == 0) break;
|
||||
}
|
||||
return 0;
|
||||
int a, b;
|
||||
srand((unsigned)time(&t));
|
||||
for(;;){
|
||||
a = rand() % 20;
|
||||
printf("%d\n", a);
|
||||
if(a == 10)
|
||||
break;
|
||||
b = rand() % 20;
|
||||
printf("%d\n", b);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue