How to generate a number starts with 01 to 10 in c?
Answers
Answered by
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
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