Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
mohan
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//gcc 5.4.0 #include <stdio.h> int main(void) { int a[5]; int i,j; int max=0,min=0; for(i=0;i<5;i++); { printf("\n enter %d value:"i+1); scanf("%d",&a[i]); max=a[0]; for(j=1,j<5,j++){ if(max<a[j]){ max=a[j]; } } printf("\n the max value is %d",i+1); scanf("%d",&a[j]); } } printf("\n the max value is %d",max); } min=a[0]; for(j=1;j<5;j++); if(min>a[j]){ min=a[j]; } } printf("\n the max value is %d",min); } return 0; }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion