Powered by Blogger.

Saturday, January 19, 2013

print the series....

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<math.h>
void main()
{
clrscr();
int i;
float z;

for(i=0;i<8;i++)
{
z=pow(2,i);

//for(i=0;i<8;i++)
printf(" 1/%3.f\n",z);
}
getch();
}

0 comments:

Post a Comment