Top Banner
if else เปิดเหมือนทุกครั ้ง #include "stdio.h" void main () และ { } int age;
7

Week5 if Else PDF

Sep 27, 2015

Download

Documents

.......................
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • if else

    #include "stdio.h" void main () { }

    int age;

  • printf("How old are you?:");

    scanf("%d",&age);

  • if(age >= 50)

    { }

  • printf("You are old!!!");

    Else

  • { }

    printf("You are young(*_*)");

  • printf("good bye (^/\^)");

    return 0;

  • run