Click To View The Programs
1. Creating the one Dimension array ( 1 d Array )
HTML
<h2 style="text-align: center;">Device Info</h2>
<div><h2>
<table>
<tr>
<td>Version</td>
<td><p id ="version"></p></td>
</tr>
<tr>
<td>Device Model</td>
<td><p id ="model"></p></td>
</tr>
<tr>
<td>Platform</td>
<td><p id ="platform"></p></td>
</tr>
<tr>
<td>UUID</td>
<td><p id ="uuid"></p></td>
</tr>
<tr>
<td>Andrion Version</td>
<td><p id ="androidVersion"></p></td>
</tr>
<tr>
<td>Manufacturer</td>
<td><p id ="manufacturer"></p></td>
<tr>
<td>isVirtual</td>
<td><p id ="isvirtual"></p></td>
</tr>
<tr>
<td>Serial Number</td>
<td><p id ="serialNo"></p></td>
</tr>
</h2></div>
JAVASCRIPT
document.getElementById("version").innerHTML = device.cordova;
document.getElementById("platform").innerHTML = device.platform;
document.getElementById("model").innerHTML = device.model;
document.getElementById("uuid").innerHTML = device.uuid;
document.getElementById("androidVersion").innerHTML = device.version;
document.getElementById("manufacturer").innerHTML = device.manufacturer;
document.getElementById("isvirtual").innerHTML = device.isvirtual;
document.getElementById("serialNo").innerHTML = device.serial;
#include
ReplyDelete#include
int a[20];
void selection_sort(int n)
{
int imin,i,j,temp;
for(i=0;ia[j])
{
imin=j;
}
}
temp=a[i];
a[i]=a[imin];
a[imin]=temp;
}
printf("Successfully started using the selectionsort algorithm\n");
}
void main()
{
printf("Enter the number of Elements");
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("enter%dth element",i);
scanf("%d",&a[i]);
}
selection_sort(n);
int n,i;
for(i=0;i<n;i++)
{
printf("%d\n",a[i]);
}
}
ok
Delete