What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 16:15:33
array of array in c
#include <stdio.h> int main(void) { int size, i; printf("Enter the size of the arrays:\n"); scanf("%d", &size); int arr1[size]; printf("Enter the elements of the array:\n"); for (i = 0; i < size; i++) { scan... Add solution -
Other 2022-03-17 04:25:04
Write a program to check whether a grammar is left recursive or not, if it is remove left recursion
1: #include<stdio.h> 2: #include<string.h> 3: #define SIZE 10 4: int main () { 5: char non_terminal; 6: char beta,alpha; 7: int num; 8: char production[10][SIZE]; 9: int index=3; /* starting of... Add solution -
Other 2022-03-10 18:10:03
protocol buffers stream golang
package main import ( "context" "io" "log" pb "github.com/pramonow/go-grpc-server-streaming-example/src/proto" "google.golang.org/grpc" ) func main() { // dial server conn, err := grpc.Dial(&quo... Add solution -
Python 2022-03-03 00:45:07
c Pythagorean triples
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; printf("TERNE PITAGORICHE!\n\nPrimo numero: "); scanf("%d", &a); printf("Secondo numero: "); scanf("%d", &b); printf(&... Add solution -
Other 2022-03-02 21:50:14
Write a program to show swap of two numbers without using third variable.
#include<stdio.h> int main() { int a=10, b=20; printf("Before swap a=%d b=%d",a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf("\nAfter swap a=%d b=%d",a,b); retu... Add solution -
C 2022-03-02 21:05:43
c program from decimal to binary
#include <stdio.h> #include <math.h> #include <stdlib.h> #define D 10 int main() { int i, n, k, vet[D]; printf("FROM DECIMALS TO BINARIES\nEnter decimal: "); scanf("%d", &n); k = 0; while (n != ... Add solution -
TypeScript 2022-03-02 12:45:05
sum of diagonal elements of a matrix in c
#include <stdio.h> void main () { int i,j,matrix[10][10],m,n,sum=0; printf("Enter number of rows of matrix : "); scanf("%d", &m); printf("Enter number of columns of matrix : "); scanf("%d... Add solution
Best helpers
Derek Kaplan
+5
Sqlsourcerer
+5
Ken N.
+5
Rene Duchamp
+5
Susette87
+5
Tanveer Ali
+5
Simon LANG
+5
Andrew Besag
+5
Littleprince
+5
Bridget W.
+5
Haidy Kassem
+5
Ferhat Turan
+5
Jwp36
+5