June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -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;
}