Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. /**
  5. *main - do something
  6. *Return: something
  7. */
  8. int main(void)
  9. {
  10. char r;
  11. int a = 2772;
  12. srand(time(NULL));
  13. while (a > 90)
  14. {
  15. r = (rand() % (90 - 65)) + 65;
  16. a = a - r;
  17. printf("%c", r);
  18. }
  19. printf("%c", a);
  20. return (0);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement