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

@adarshb2005

find average of 2 int numbers

C
2 years ago
#include <stdio.h> main() { int a,b,sum; printf("enter the first number:\n"); scanf("%d",&a); printf("enter the second number:\n"); scanf("%d",&b); sum= (a+b)/2; printf("enter the average of two integer number = %d",sum);

multiply two floating points numbers

C
2 years ago
#include <stdio.h> main() { float num1,num2,sum; printf("enter the first float number:\n"); scanf("%f",&num1); printf("enter the second float number:\n"); scanf("%f",&num2); sum=num1*num2; printf("multiple of the float number=%f",sum);
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