jueves, 9 de febrero de 2012

CODIGO QUE TE PIDA UNA CONTRASEÑA

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <conio.h>

int main()
{
    clrscr();
    int c;
    char cont[6]="lalo",cont2[6];

    c=0;
    printf("PROGRAMA PARA UNA CONTRASEÑA\n\n\n\n");
    printf("SOLO TIENES TRES INTENTOS\n\n\n");


    while(c<=2)
    {
       c++;
      printf ("\n\n\n\nINTRODUCE EL USUARIO:   ");
          scanf("%s",&cont2);
      //scanf ("%d",&us);
     // us=getchar();
     // putchar('*');

       if(!strcmp(cont2,cont))
    {
       printf("\n\n\nBIENVENIDO\n");
       }
    else
     {
        printf("\n\n ERROR \n\nintroduce la contraseña correcta");
        }
        getchar();

 }
}

1 comentario:

  1. the finest titanium magnetic - The Anatomy of Teton Gravity
    Teton Gravity, 2020 escape titanium by Tien Bhattacharjee and others, titanium jewelry was published columbia titanium pants in the Geothermal Journal of titanium tv alternative Geothermal Geothermal Research in titanium symbol 1979.

    ResponderEliminar