What do you want to save?
Add Code snippet
New code examples
-
C 2021-10-08 05:45:05
leer un archivo en c
#include <stdio.h> //LEE UN ARCHIVO RELLENO DE NUMEROS, LOS MUESTRA UNO EN CADA LINEA Y //CALCULA EL TOTAL, LA SUMA Y CUAL ES EL MAYOR int main(){ FILE *f; int numero, suma, cuantos, mayor; f = fopen("numeros.txt", "r"); if(... Add solution -
C 2021-10-07 17:58:03
Find the smallest number in a table
#include <stdio.h> int main(void) { int i,n,m,t[50]; printf("How long do you want your table? :"); scanf("%d",&n); for (i=0;i<n;i++){ printf("enter the %d number :",i+1); scanf("%d",&t[i]); } ... Add solution -
C 2021-10-07 13:39:03
best approach c menu terminal
#include<stdio.h> typedef void (*Menu_Processing_Function_Pointer)(void); struct Menu_Option { char choice; char const *p_selection_text; Menu_Processing_Function_Pointer p_processing_function; }; void Process_Selection_One(){ printf("Te... Add solution -
C 2021-10-07 12:13:02
C program to print calculator using switch statement
#include<stdio.h> int main() { int a, b, total; char op; printf("Enter the number"); scanf("%d%c%d", &a, &op, &b); switch(op) { case '+': total = a + b; break; case '-': total = a - b; break; case '*': total = a * ... Add solution -
C 2021-10-06 21:38:05
how to take blank space in c scanf
scanf("%[^\n]s",str); Add solution