Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include "pch.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5. int RegCheck(char *word, int size) {
  6.     int i;
  7.     for (i = 0;i < size;i++)
  8.         if (isupper(word[i]) == 0) return 0;
  9.     return 1;
  10. }
  11. int main() {
  12.     int wordsize;
  13.     printf("wordsize="); scanf("%d", &wordsize);
  14.     fgets(word, wordsize, stdin);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement