What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-05 10:40:25
Write a program that asks a user for their birth year encoded as two digits (like "62") and for the current year, also encoded as two digits (like "99"). The program is to correctly write out the users age in years
#include<stdio.h> int main(){ signed int current, birth, a; printf("Enter Year of Birth\n"); scanf("%d",&birth); printf("Enter Current year\n"); scanf("%d",¤t); if(current<birth) ... Add solution -
C 2022-02-02 23:50:43
a program to find the numbers of positive, negative, odd and even numbers in a set of numbers in C
#include <stdio.h> void main () { int a[100]; int num,i; printf("How many numbers do you want to enter? : "); scanf("%d",&num); fflush(stdin); for (i=0;i<num;i++) { printf("Enter %d... Add solution -
C++ 2022-02-02 22:01:36
distinct char string c++
#include<stdio.h> #include<string.h> // function to return the number of unique // characters in str[] int count_unique_char(char* str) { int hash[128] = { 0 }; int i, c = 0; // reading each character of str[] for (i = 0; i < strlen(... Add solution -
Other 2022-02-02 19:20:46
c language quadratic equation
#include <stdio.h> #include <math.h> int main() { int a, b, c, d; double root1, root2; printf("Enter a, b and c where a*x*x + b*x + c = 0\n"); scanf("%d%d%d", &a, &b, &c); d = b*b - 4*a*c; if (d &... Add solution -
C 2022-02-01 10:15:03
how to print the elements of a linked list in c
typedef struct node{ int value; //this is the value the node stores struct node *next; //this is the node the current node points to. this is how the nodes link }node; void printList(node *head){ node *tmp = head; while(tmp != NULL){ ... Add solution
Best helpers
Zulu
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
DJaye
+5
Umesh
+5
Pc1oad1etter
+5
Loronzo
+5
Vermilions
+5
Ian Goldby
+5
Elenaher
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5