Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. //A string is read from the keyboa
  2. //rd. Find out how many digits, how
  3. //many uppercases and how many lowe
  4. //rcases that string contains.
  5. #include <stdio.h>
  6. #include <ctype.h>
  7. #include <conio.h>
  8. #include <string.h>
  9. void main (void){
  10.  
  11. char str[20];
  12. printf("Enter the name to scan it: \n\n");
  13. scanf("%s", str);
  14. n=strlen(&str);
  15. for(i=n;i>=0;i-1);
  16. printf(%c, str[i]);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement