Thread: Write a C program to check whether a triangle is Equilateral, Isosceles or Scalene.

  1. #1
    Registered User
    Join Date
    Nov 2016
    Posts
    2

    Write a C program to check whether a triangle is Equilateral, Isosceles or Scalene.

    Write a C program to check whether a triangle is Equilateral, Isosceles or Scalene.
    Sample Run :
    50 50 60
    Expected Output :
    This is an isosceles triangle.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    So where is your attempt?

    You can't just roll in, dump your assignment and expect someone to give you an answer on a plate. It doesn't work like that.
    http://cboard.cprogramming.com/c-pro...uncements.html

    At the very least, you should be capable of reading in the required data into suitable variables.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Print the star equilateral triangle
    By Marjorie in forum C Programming
    Replies: 3
    Last Post: 12-24-2014, 12:30 AM
  2. Replies: 3
    Last Post: 09-29-2013, 05:25 AM
  3. Replies: 12
    Last Post: 09-14-2010, 08:19 PM
  4. check for read or write
    By SoFarAway in forum C Programming
    Replies: 6
    Last Post: 04-09-2005, 01:50 AM
  5. Equilateral Right Triangles
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-06-2002, 03:32 PM

Tags for this Thread