I need this code to be executed in C
The below code is working
but my requirement thatCode:#include <iostream>
using namespace std;
int main()
{
int i = 1;
for(i=4; i <= 16384;i*=2)
cout << i << " " << endl;
return 0;
}
if i add code (result*=2) , its showing wrong result.Code:#include <iostream>
{
int N;
unsigned result =1;
unsigned char = 16384;
for (int i=0;i<N;i++)
{
//Logic
}