ShriRam Changed status to publish July 15, 2022
#include<stdio.h> void main() { int n,i,large,small; printf("Input 10 Number, Enter First Number\n"); scanf ("%d", &n); large = n; small=n; for (i=1; i<= 10-1; ++i) { printf ("\n Enter another number \n"); scanf ("%d",&n); if (n>large) large=n; if (n<small) small=n; } printf ("\n The largest number is %d", large); printf ("\n The smallest number is %d", small); getch(); }
ShriRam Changed status to publish July 15, 2022