week3 area

7
หาพืÊนทีÉสีÉเหลีÉยมคางหมู สูตรคางหมู= 1/2*(ผลบวกด้านคู่ขนาน)*สูง เปิดโปรแกรมภาษาซี เข้า source file และพิมพ์ #include<stdio.h> พิมพ์โค้ดตามภาพ

Upload: amarat-thongthawee

Post on 27-Sep-2015

23 views

Category:

Documents


0 download

DESCRIPTION

Week3 Area

TRANSCRIPT

  • = 1/2*()*

    source file #include

  • #include

    void main()

    {

    float A,A,h,area;

    printf("Please insert to side:");

    scanf("%f",&A);

    printf("Please insert to side:");

    scanf("%f",&A);

    printf("Please insert to side heigh:");

    scanf("%f",&h);

    area = . * (A+A)*h;

    printf("Result area is %f",area);

    }