Saturday, September 7, 2019

Area of right angle triangle

#include <stdio.h>
main()
{    int height,base;
float area;
printf("enter the height of triangle\n" );
scanf("%d",&height);
printf("enter the base of triangle\n");
scanf("%d",&base);
area=base*height*0.5;
printf("area is %f",area);
}

No comments:

Implement stsStr Leetcode solution

  28.   Implement strStr() Easy Implement  strStr() . Given two strings  needle  and  haystack , return the index of the first occurrence of...