PLease help me finish the rest of this code… C language andthe this seem to be like add a number and make it in the rightorder ( small to big).
#include <stdio.h>
main()
{
int a[30];
int i, j, lasti;
int num;
lasti = 0;
printf(“Enter an integer: “);
scanf(“%d”, &a[0]);
printf(“array[0] is: %dn”, a[0]);
while(1)
{
printf(“Enter an integer to be sorted: “);
scanf(“%d”, &num);
for(i = 0; i<=lasti; i++)
{
// if num is bigger than a[i]
if( num < a[i] )
{
// But we are sorting as a number_come_in bases,
// a[0] < a[1] < a[2] < a[3] < ….. <a[lasti]
// For example;
// a[0] a[1] a[2] a[3] a[4] a[5]
// 7 < 12 < 30 < 35 <
PayPal Gateway not configured
PayPal Gateway not configured