What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 02:12:02
bash similiar to choice in cmd
#!/bin/sh show_menu(){ normal=`echo "\033[m"` menu=`echo "\033[36m"` #Blue number=`echo "\033[33m"` #yellow bgred=`echo "\033[41m"` fgred=`echo "\033[31m"` printf "\n${menu}***... Add solution -
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 -
Javascript 2021-08-27 18:23:02
install node js using nvm ubuntu
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... 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
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