Last active
February 16, 2020 02:32
-
-
Save arpanpreneur/bb689f796f20fdd8d517dded59f8d867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int getRandomNumber(int lower, int upper) { | |
return (rand() % (upper - lower + 1)) + lower; | |
} | |
int main() { | |
srand(NULL); | |
int num1 = getRandomNumber(1, 500); | |
int num2 = getRandomNumber(1, 500); | |
float res; | |
printf("%d / %d = ", num1, num2); | |
scanf("%f", &res); | |
// YOUR CODE GOES HERE | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment