Cari Blog Ini

Senin, 10 Desember 2012

Determine whether the program Equilateral


# Include <stdio.h>
# Include <conio.h>

void main ()
{
int a, b, c;
printf ("number of triangle abc angle is 180 degrees, \ n");
printf ("enter the angle a:"); scanf ("% i", & a);
printf ("enter the angle b:"); scanf ("% i", & b);
printf ("enter the angle c:"); scanf ("% i", & c);
if (a == b && b == c && a == c)
printf ("equilateral triangle";
else
printf ("Not Equilateral");
getch ();
}
 

Tidak ada komentar:

Posting Komentar

berikan komentar kalian tentang page ini dan share page ini ke teman-teman kalian