Math, asked by myadav7698, 1 year ago

How to generate a number starts with 01 to 10 in c?

Answers

Answered by MacTavish343
0
Helloo!!

use this C programming code to generate starts with 01 to 10

#include <stdio.h>

#include <stdlib.h>

int main()

{

int randomnumber;

randomnumber = rand() % 10;

printf("%d\n", randomnumber);

return 0;

}

use this code in Dev-c++

hope it heps
Similar questions