Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 17;
- n > 8 ? printf("true") : printf("false");
- if(n > 8) printf("true");
- else printf("false");
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 7;
- switch(n)
- {
- case 5: printf("n = %d\n", 5);
- //break ;
- case 7: printf("n = %d\n", 7);
- //break ;
- default: printf("danger");
- }
- }
- */
- /*#include <stdio.h>
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 5 + 2 + 7;
- if(6) printf("True = %d", true);
- // else printf("False = %d", false);
- }
- */
- /*
- #include <stdio.h>
- void foo(int &, int);
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 5 + 2 + 7;
- printf("n = %d \n", n);
- }
- */
- /*
- void foo(int &, int);
- ////////////////////////////////////////////////////
- int main() //
- {
- char sz[333] = "SONY";
- printf("Hel %s lo ! \n", "SONY");
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement