Videos on RH BILL debate
Lunes, Hulyo 23, 2012
Martes, Enero 17, 2012
Shell Sort
#include<stdio.h>
#include<conio.h>
void shellsort(int a[],int n)
{
int j,i,k,m,mid;
for(m = n/2;m>0;m/=2)
{
for(j = m;j< n;j++)
{
for(i=j-m;i>=0;i-=m)
{
if(a[i+m]>=a[i])
break;
else
{
mid = a[i];
a[i] = a[i+m];
a[i+m] = mid;
}
}
}
}
}
main()
{
int a[10],i,n;
clrscr();
printf("Enter The number Of Elements\t: ");
scanf("%d",&n);
for(i=0;i< n;i++)
{
printf("\nElement %d\t: ",i+1);
scanf("%d",&a[i]);
}
printf("\nArray Befor Sorting : ");
for(i=0;i< n;i++)
printf("%5d",a[i]);
shellsort(a,n);
printf("\nArray After Sorting : ");
for(i=0;i< n;i++)
printf("%5d",a[i]);
getch();
return 0;
}
/* OUTPUT
Enter The number Of Elements : 5
Element 1 : 21
Element 2 : 36
Element 3 : 54
Element 4 : 2
Element 5 : 0
Array Befor Sorting : 21 36 54 2 0
Array After Sorting : 0 2 21 36 54
*/
#include<conio.h>
void shellsort(int a[],int n)
{
int j,i,k,m,mid;
for(m = n/2;m>0;m/=2)
{
for(j = m;j< n;j++)
{
for(i=j-m;i>=0;i-=m)
{
if(a[i+m]>=a[i])
break;
else
{
mid = a[i];
a[i] = a[i+m];
a[i+m] = mid;
}
}
}
}
}
main()
{
int a[10],i,n;
clrscr();
printf("Enter The number Of Elements\t: ");
scanf("%d",&n);
for(i=0;i< n;i++)
{
printf("\nElement %d\t: ",i+1);
scanf("%d",&a[i]);
}
printf("\nArray Befor Sorting : ");
for(i=0;i< n;i++)
printf("%5d",a[i]);
shellsort(a,n);
printf("\nArray After Sorting : ");
for(i=0;i< n;i++)
printf("%5d",a[i]);
getch();
return 0;
}
/* OUTPUT
Enter The number Of Elements : 5
Element 1 : 21
Element 2 : 36
Element 3 : 54
Element 4 : 2
Element 5 : 0
Array Befor Sorting : 21 36 54 2 0
Array After Sorting : 0 2 21 36 54
*/
Martes, Setyembre 20, 2011
RH Bill Background
Reproductive Health Bill
While there is general agreement about its provisions on maternal
and child health, there is great debate on its key proposal that the
Philippine government and the private sector will fund and undertake
widespread distribution of family planning devices such as condoms,
widespread distribution of family planning devices such as condoms,
birth control pills (BCPs) and IUDs, as the government continues
to disseminate information on their use through all health care
centers.The Reproductive Health bills, popularly known as the
RH Bill , are Philippine bills aiming to guarantee universal access
to methods and information on birth control and maternal care
. The bills have become the center of a contentious national debate.
There are presently two bills with the same goals:
House Bill No. 4244 or An Act Providing for a Comprehensive
Policy on Responsible Parenthood, Reproductive Health, and
Population and Development, and For Other Purposes introduced
byAlbay 1st district Representative Edcel Lagman, and Senate Bill
No. 2378 or An Act Providing For a National Policy on
The bill is highly divisive, with experts, academics, religious institutions,
and major political figures supporting and opposing it, often criticizing
the government and each other in the process. Debates and rallies for
and against the bill, with tens of thousand participating, have been
happening all over the country.
and major political figures supporting and opposing it, often criticizing
the government and each other in the process. Debates and rallies for
and against the bill, with tens of thousand participating, have been
happening all over the country.
Mag-subscribe sa:
Mga Post (Atom)