Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
mohan
//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; }
run
|
edit
|
history
|
help
-1
Please
log in
to post a comment.
Null deref
Bitwise Xor Swaping Two Variables
Hello
141124_PI
ques.1
C_141112_Perfectos
dcl
Bitwise Operations
LinkedListTest
Eee
Please log in to post a comment.