Saturday, 22 July 2017

Print the Sequence [64 32 16 8 4 2]

Print the Sequence [64  32  16  8  4  2].

Print the collection of all even wide variety [64 32 16 8 4 2] in c++ and let a c programming.

Code:


#include<stdio.h>
#include<conio.h>
void main()
{
 int n;
 for(n=64;n>=2;n/=2)
 {
 printf("%d ",n);
 }
 getch();
 clrscr();
}

Output:


Try it yourself.
If you have any problem you can tell me on comment box i will help you.
thanks.

Viral Programs

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.

1 comments: