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 -
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 -
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 -
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
Best helpers
JohnDoe
+5
Moo-Juice
+5
Jeff Ava
+5
RichVel
+5
Pharma
+5
Seige
+5
Parallax
+5
PixelZerg
+5
Akiman Barwa
+5
A. Pettit
+5
Andrew Lowe
+5
Meaning
+5
Mahnaz
+5
Ben Kennett
+5
Silver Rain
+5
Tralston
+5
Rahul Ramesh
+5
Jcjr
+5
Thruston
+5
Alec Cook
+5
Machisuji
+5
Catimann
+5
PeterBocan
+5