fork download
  1. #include <stdio.h>
  2.  
  3. int main() /* Most important part of the program!
  4. */
  5. {
  6. int age; /* Need a variable... */
  7.  
  8. printf( "Please enter your age" ); /* Asks for age */
  9. scanf( "%d", &age ); /* The input is put in age */
  10. if ( age < 100 ) { /* If the age is less than 100 */
  11. printf ("You are pretty young!\n" ); /* Just to show you it works... */
  12. }
  13. else if ( age == 100 ) { /* I use else just to show an example */
  14. printf( "You are old\n" );
  15. }
  16. else {
  17. printf( "You are really old\n" ); /* Executed if no other statement is
  18.   */
  19. }
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
nice.lang: parsing
.: parsing

/home/9oiZHu/.//main.nice: line 1, column 1:
Encountered "#".
Was expecting one of:
    <EOF> 
    "(" ...
    "?" ...
    "!" ...
    "<" ...
    "class" ...
    "interface" ...
    "enum" ...
    "import" ...
    "package" ...
    "alike" ...
    "new" ...
    "var" ...
    "let" ...
    "public" ...
    "private" ...
    "final" ...
    "abstract" ...
    <BACKQUOTEDSTRING> ...
    <IDENT> ...
    
stdout
Standard output is empty