Make a c program to print random variables
Answers
Answered by
0
#include <stdlib.h>
#include <stdio.h>
void main()
{
int i;
printf("Random Numbers from 1 to 100 are : ");
printf("\n\n");
for(i=0; i<10; i++)
{
printf("Random Number %d : %d\n", i, rand()%100);
}
printf("\n");
getch();
}
#include <stdio.h>
void main()
{
int i;
printf("Random Numbers from 1 to 100 are : ");
printf("\n\n");
for(i=0; i<10; i++)
{
printf("Random Number %d : %d\n", i, rand()%100);
}
printf("\n");
getch();
}
Similar questions
English,
8 months ago
Hindi,
8 months ago
Science,
8 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago