What do you want to save?
Add Code snippet
New code examples
-
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:58:03
variable parameters in c
#include <stdio.h> #include <stdarg.h> double average(int num,...) { va_list valist; double sum = 0.0; int i; /* initialize valist for num number of arguments */ va_start(valist, num); /* access all the arguments assigned... Add solution -
Java 2021-09-04 15:38:02
java printf tab
String prefix1 = "short text:"; String prefix2 = "looooooooooooooong text:"; String msg = "indented"; /* * The second string begins after 40 characters. The dash means that the * first string is left-justified. */ String form... 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
Best helpers
Srishti L
+5
Dan Romik
+5
Enceladus
+5
Jaehyeon Yu
+5
Rrrrhh
+5
Ciara
+5
L E Morin
+5
J-Dizzle
+5
EHH
+5
BuckNaked69
+5
Supes9
+5
Anirudhan J
+5