What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-05 02:02:01
sorting in structure with c
#include <stdio.h> struct student { int rollno; char name[80]; int marks; }; void accept(struct student list[], int s); void display(struct student list[], int s); void bsortDesc(struct student list[], int s); int main() { struct ... Add solution -
C 2021-09-04 21:07:03
adding digits of a number in c
//program to find the sum of digits: #include<stdio.h> int main() { int num,sum=0,r,temp; printf("Enter the number:\n "); //taking input from the user scanf("%d",&num); temp=num; //assigning num to temp... Add solution -
Other 2021-09-04 19:42:03
459 - graph connectivity solutions
#include<bits/stdc++.h> using namespace std; vector<int>adj[1000]; bool visited[1000]; int pre[10000]; void add(int u,int v) { adj[u].push_back(v); adj[v].push_back(u); } void dfs(int s) { if(visited[s]) return; visited[s]=... Add solution -
C 2021-09-04 10:26:02
how to read in sentences in c
scanf(“%[^\n]s”, string); Add solution -
C 2021-09-04 04:51:03
implement the Beizer Curve code in c
#include<graphics.h> #include<math.h> #include<conio.h> #include<stdio.h> void main() { int x[4],y[4],i; double put_x,put_y,t; int gr=DETECT,gm; initgraph(&gr,&gm,"C:\\TURBOC3\\BGI"); printf("\n****** Bezier ... Add solution -
C 2021-09-04 03:17:02
c generate random number
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { int number, min, max; system("cls"); printf("What is the minimum number?\n"); scanf("%d", &min); printf("What is the... Add solution -
C 2021-09-03 18:27:03
a c program to computes the prime numbers in the user mentioned range
#include <stdio.h> int main() { int num1, num2, flag_var, i, j; /* Ask user to input the from/to range * like 1 to 100, 10 to 1000 etc. */ printf("Enter two range(input integer numbers only):"); //Store the range in v... Add solution