SHARE
TWEET

triangle

Mahmud33 May 25th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a, b, c, sum;
  5.     printf("Enter the angle of the triangle: \n");
  6.     scanf("%d %d %d", &a,&b,&c);
  7.  
  8.     sum=(a+b+c);
  9.     if(sum==180){
  10.         printf("Triangle is valid");
  11.     }
  12.     else{
  13.         printf("Triangle is not valid");
  14.     }
  15.     return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top