myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
M

@mikeelopez

formula general ig

C
2 months ago
#include <stdio.h> #include <math.h> int main() { float a=2, b=5, c=2, resultado; resultado=(-b+sqrt(pow(b,2)-(4*a)*c))/(2*a); printf("tu resultado es: %f\n", resultado); resultado=(-b-sqrt(pow(b,2)-(4*a)*c))/(2*a);

Uso de pow/sqrt

C
2 months ago
#include <stdio.h> #include <math.h> int main() { float x1=4, x2=5, y1=5, y2=7, resultado; resultado=sqrt(pow(x2-x1,2)+pow(y2-y1,2)); printf("Su resultado es:%f", resultado); return 0; }

tabla de multiplicar

C
3 months ago
#include <stdio.h> int main() { for(int f=1; f<=10; f++){printf("\n"); for(int c=1; c<=10; c++) printf("%4d",f*c); } return 0; }

Identificar números primos

C
3 months ago
#include <stdio.h> int main() { int n=2, c=1, nv=0; while(c<=n){ if(n%c==0){ nv++; } c++; }

2.1 Positivo o negativo

C
3 months ago
#include <stdio.h> int main() { /* printf("Indique el valor de x:\n"); scanf("%d",&x) */ int x=-4; if (x>=0){

1.2 Área de un rectángulo

C
3 months ago
#include <stdio.h> int main() { float b=5.5, h=6.8; printf("El área de su rectágunlo es de: %.2f", b*h); return 0; }

1.1 Lectura y suma de dos números

C
3 months ago
// Lectura y suma de dos números #include <stdio.h> int main() { int x=3,y=2, suma=0; /* prinf("Indique el valor de x: "); scanf("%d",&x); printf("Indique el valor de y: "); scanf("%d",&y);
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us