Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 68 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5.    char frase[100];
  6.    int letras=0;
  7.    int numeros=0;
  8.    int i;
  9.    for(i=0;i<100;i++)
  10.    {
  11.     printf("Informe uma frase: ");
  12.     scanf("%c", &frase[i]);
  13.    }
  14.    
  15.    for(i=0;i<100;i++)
  16.    {
  17.        if(frase[i]=='Q' || frase[i]=='W' || frase[i]=='W'|| frase[i]=='E'|| frase[i]=='R' || frase[i]=='T'|| frase[i]=='Y'|| frase[i]=='U'|| frase[i]=='I'|| frase[i]=='O'|| frase[i]=='P'|| frase[i]=='A'|| frase[i]=='S'|| frase[i]=='D'|| frase[i]=='F'|| frase[i]=='G'|| frase[i]=='H'|| frase[i]=='J'|| frase[i]=='K'|| frase[i]=='L'|| frase[i]=='L'|| frase[i]=='Z'|| frase[i]=='X'|| frase[i]=='C'|| frase[i]=='V'|| frase[i]=='B'|| frase[i]=='N'|| frase[i]=='M')
  18.        {
  19.            letras++;
  20.        }
  21.        else if(|| frase[i]=='q'|| frase[i]=='w'|| frase[i]=='e'|| frase[i]=='r'|| frase[i]=='t'|| frase[i]=='y'|| frase[i]=='u'|| frase[i]=='i'|| frase[i]=='o'|| frase[i]=='p'|| frase[i]=='a'|| frase[i]=='s'|| frase[i]=='d'|| frase[i]=='f'|| frase[i]=='g'|| frase[i]=='h'|| frase[i]=='j'|| frase[i]=='k'|| frase[i]=='l'|| frase[i]=='z'|| frase[i]=='x'|| frase[i]=='c'|| frase[i]=='v'|| frase[i]=='b'|| frase[i]=='n'|| frase[i]=='m')
  22.        {
  23.            letras++;
  24.        }
  25.        if(frase[i]='1'||frase[i]='2'||frase[i]='3'||frase[i]='4'||frase[i]='5'||frase[i]='6'||frase[i]='7'||frase[i]='8'||frase[i]='9'||frase[i]='0')
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top