i am new in c . i have made the code in C++.its working fine. the only problem i face i got error in printf statment.
please tell me how can i change cout statement into printf
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int x=0;
for(int i=0;i<=6;i++)
{
cout<<x<<" "<< pow (2,x)<<endl;
x++;
}
return 0;
}