Public paste
C code
By: microhaxo | Date: Dec 28 2009 02:59 | Format: None | Expires: never | Size: 333 B | Hits: 1051

  1. #include <stdio.h>
  2. #include <string.h>
  3. main()
  4. {
  5.         printf("hello world!n");
  6.         int max = 5;
  7.         int i = 0;
  8.         char *name = "";
  9.         puts("what is your name?");
  10.         //gets(name);  
  11.         scanf( "%s", name );           
  12.         //int k = 0;   
  13.         if(strcmp(name, "blake")==0)
  14.         {
  15.                 for(i = 0; i < max; i++)
  16.                 {
  17.                         printf("hello! n" );
  18.                 }
  19.         }
  20.  
  21.         return 0;
  22. }