Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Test expression



" ; " after loop



Specifer



Working with switch case



Iterative statement




find if triangle or not



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #define pf printf int main() { int a,b,c; pf("Enter the value of a,b&c: "); scanf("%d %d %d",&a,&b,&c); if((a+b)>c) pf("\nThis is a try-angle."); else if((a+c)>b) pf("\nThis is a try-angle."); else if((b+c)>a) pf("\nThis is a try-angle."); else pf("\nThis is not a try-angle."); return 0; }
OUTPUT:


© 2018 - All rights reserved