What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-27 21:35:04
Write a c code to create a data base of students using structure. The member variables are roll, grade, and marks. Create 3 structure variable of 3 different roll numbers and find out the roll number of the student who is having highest marks.
#include <stdio.h> struct student { char firstName[50]; int roll; float marks; } s[10]; int main() { int i; printf("Enter information of students:\n"); // storing information for (i = 0; i < 5; ++i) { ... Add solution -
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 -
Javascript 2022-03-17 18:45:24
format number thousands k javascript
function nFormatter(num, digits) { var si = [ { value: 1, symbol: "" }, { value: 1E3, symbol: "k" }, { value: 1E6, symbol: "M" }, { value: 1E9, symbol: "G" }, { value: 1E12, symbol: "T&quo... 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 -
Other 2022-03-02 06:40:06
how to shuffle array in c
#include <stdlib.h> /* Arrange the N elements of ARRAY in random order. Only effective if N is much smaller than RAND_MAX; if this may not be the case, use a better random number generator. */ void shuffle(int *array, size_t n) { if (n... Add solution
Best helpers
Blank
+5
Grin
+5
Hwsolutions
+5
Charlemagne
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
37Bons
+5
Highlightman
+5
Paul Knight
+5
Karl
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Zkanoca
+5
Frank Jaeger
+5