Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Triangle

/***************************************************
 * Author    : CS Developers
 * Author URI: https://www.comscidev.com
 * Facebook  : https://www.facebook.com/CSDevelopers
 ***************************************************/

#include <stdio.h>
 
int main()
{
    float base;
    float height;
 
    printf("
Input value of base : ");
    scanf("%f", &base);
 
    printf("Input value of height : ");
    scanf("%f", &height);
      
    printf("
Area of a Triangle is %.2f 

", 0.5 * base * height);
 
    return 0;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Triangle
ADD COMMENT
Topic
Name
7+8 =