C program to find the min and max of given numbers without using array
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to find the min/max of given numbers ——————————————————————————————————————————— How many numbers you want to enter 5 Enter 5 numbers -10 50 1005 2048 155 Maximum number 2048 Minimum number -10 ——————————————————————————————————————————— kodingwindow@kw:~$
C program to find the min and max of given numbers using array
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to find the min/max of given numbers ——————————————————————————————————————————— Enter 10 numbers 5 -25 -5005 1024 2048 155 233 65535 625 1225 Maximum number 65535 Minimum number -5005 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C program to print alphabets using the ASCII values
C program to reverse a given number
C program for the addition of N natural numbers
Advertisement