What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-01-31 20:22:02
write a progam to take the hour munite and second components of two times of a day and find out their difference (assume the latest time is given first)
#include <stdio.h> struct TIME { int seconds; int minutes; int hours; }; void differenceBetweenTimePeriod(struct TIME t1, struct TIME t2, struct TIME *diff); int main() { ... Add solution -
C++ 2022-01-30 17:51:12
Write a program to print following pattern; 1 1 2 1 2 3 1 2 3 4
#include <stdio.h> int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("%d ", j); ... Add solution -
Other 2022-01-26 11:11:01
Programs to print triangles using *, numbers, and characters
#include <stdio.h> int main() { int i, space, rows, k = 0, count = 0, count1 = 0; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (space = 1; space <= rows -... Add solution -
Other 2022-01-26 09:05:02
Use the linear linked list code to store a randomly generated set of 100 integers. Now write a routine that will rearrange the list in sorted order of these values.
// C program to implement Bubble Sort on singly linked list #include<stdio.h> #include<stdlib.h> /* structure for a node */ struct Node { int data; struct Node *next; }; &nbs... Add solution
Best helpers
Simon LANG
+5
Ryo Hirai
+5
Rio1210
+5
Sqlsourcerer
+5
Pierus
+5
Ken N.
+5
Rene Duchamp
+5
Susette87
+5
Tanveer Ali
+5
NeoNosliw
+5
Derek Kaplan
+5
Littleprince
+5
Bridget W.
+5
Haidy Kassem
+5
Ferhat Turan
+5
Jwp36
+5
Andrew Besag
+5