tosadaffrom carlos

tosadaffrom carlos - Name Carlos Moran email [email protected]

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/***************************************************** Name - Carlos Moran email - [email protected] ECE 3331 Computer Project # 1 Semester Spring 2009 **************************************************** Purpose - To calculate and identify the area of triangles **************************************************** Data Files triangle.out - output file to which results will be written*/ #include <stdio.h> #include <math.h> main( ) { /*********************Setting the variables*********************/ double a, b, c, long_side, sid_1, sid_2, sid_3, trig, trap_area; int isc, sc, eq, rig, count, times,lap ; isc=0; sc=0; eq=0; rig=0; count=0; lap=1; printf("Carlos Moran\n"); printf("ECE 3331 Computer Project # 1\n"); printf("Semester Spring 2009\n\n"); printf("Enter the number of disiered triangles: "); scanf( "%d", &times); while ( count < times){ printf("****************This the triangle number: %d\n\n", lap); /********************* Performing task 1 ***********************************/ /*This loop will ask the user to put the side of the triangle until the criteria is matched */
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

tosadaffrom carlos - Name Carlos Moran email [email protected]

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online