Bai2.cpp - #include<stdio.h>#include<math.h>#include<windows.h>#include<conio.h> int h char a void Menu(int int tamgiacvuongdac(int char int

Bai2.cpp -...

This preview shows page 1 - 3 out of 3 pages.

#include<stdio.h> #include<math.h> #include<windows.h> #include<conio.h> int h; char a; void Menu(int&); int tamgiacvuongdac(int, char); int tamgiacvuongrong(int, char); int hinhchunhatdac(int, char); int hinhchunhatrong(int, char); int tamgiaccandac(int, char); int tamgiaccanrong(int, char); int main(){ int chon; do{ system("CLS"); Menu(chon); switch(chon) { case 1: printf("Nhap chieu cao: "); scanf("%d",&h); fflush(stdin); printf("Nhap ky tu: "); scanf("%c",&a); break; case 2: tamgiacvuongdac(h, a); break; case 3: tamgiacvuongrong(h, a); break; case 4: hinhchunhatdac(h, a); break; case 5: hinhchunhatrong(h, a); break; case 6: tamgiaccandac(h, a); break; case 7: tamgiaccanrong(h, a); break; case 0: break; default: printf("Ban chon sai. Moi ban chon lai MENU!\n"); break; } getch(); }while(chon!=0); return 0; } void Menu(int &chon) { printf("\t\t\t ============MENU===============\n"); printf("\t\t\t |1. Nhap chieu cao va ky tu ve |\n"); printf("\t\t\t |2. Ve tam giac vuong dac |\n"); printf("\t\t\t |3. Ve tam giac vuong rong |\n"); printf("\t\t\t |4. Ve hinh chu nhat dac |\n"); printf("\t\t\t |5. Ve hinh chu nhat dac rong |\n"); printf("\t\t\t |6. Ve hinh tam giac can dac |\n");
Image of page 1

Subscribe to view the full document.

printf("\t\t\t |7. Ve hinh tam giac can rong
Image of page 2
Image of page 3
  • Spring '15
  • Thuy Do

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes