What do you want to save?
Add Code snippet
New code examples
-
C 2021-08-28 00:01:01
how to verify if its a triangle in c
/** * C program to check whether a triangle is valid or not if its sides are given */ #include <stdio.h> int main() { int side1, side2, side3; /* Input three sides of a triangle */ printf("Enter three sides of triangle: \n"... Add solution -
Other 2021-08-27 23:03:02
2. Write a C program to check whether a triangle is equilateral, isosceles or scalene triangle.
#include<stdio.h> int main(){ int side1, side2, side3; printf("Enter sides of triangle:"); scanf("%d%d%d",&side1,&side2,&side3); if(side1 == side2 && side2 =... Add solution -
TypeScript 2021-08-27 10:59:01
read/write linked lists to file
#include <stdio.h> #include <stdlib.h> typedef struct Node { char name[50]; int age; struct Node *next; }Node; // user-defined functions void printPetRecord(Node *head); void writeToFile(FILE *fptr, Node *head); // main() int ma... Add solution