#include<stdio.h>#include<conio.h>main(){ int a[5],I,max,min; printf("\n enter five numbers:"); for(I=0;I<5;I++) scanf("%d",&a[I]); max=min=a[0]; for(I=0;I<5;I++) { if(a[I]>max) max=a[I]; } for(I=0;I<5;I++) { if(a[I]<min) min=a[I]; } printf("\n The largest number is %d and smallest number is %d",max,min); getch(); }
Centralized database controlled by dba and importants secure informations are stored in the database.
Whereas in a distributed database replica of data available in multiple sites.So loss of data in one site could not be affect the total system.