random no. gen b/w 1 - 100

 #include <stdio.h>

#include<stdlib.h>

#include<time.h>


int main() {

    // Write C code here

    int a;

    srand(time(0));

     a = rand()%100+1;

     

    printf("The no is %d\n", a);

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings