What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-28 01:22:01
create 2d array take input form user and write a display fuction to display in array format in c
#include<stdio.h> int main(){ /* 2D array declaration*/ int disp[2][3]; /*Counter variables for the loop*/ int i, j; for(i=0; i<2; i++) { for(j=0;j<3;j++) { printf("Enter value for disp[%d][%d]:", i, j);... Add solution -
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 -
C++ 2021-08-27 05:11:01
all trigonometric functions with complex numbers in c/c++
#include "stdafx.h" #include "calc.h" double INF = DBL_MAX; double mINF = INF * -1; void cotan(double x, double y) { resultR = 0; resultI = 0; if (x >= mINF && x <= INF && y >= mINF && y <= INF)... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5