#include <stdio.h>
#include <math.h>
int main(){
int N;
int i;
long s;
if (scanf("%d",&N)!=EOF){
for (i=0;i<=N;i++){
s = (int)pow(3,i);
printf("pow(3,%d) = %ld\n",i,s);
}
}else{
printf("int N wrong");
}
return 0;
#include <stdio.h>
#include <math.h>
int main(){
int N;
int i;
long s;
if (scanf("%d",&N)!=EOF){
for (i=0;i<=N;i++){
s = (int)pow(3,i);
printf("pow(3,%d) = %ld\n",i,s);
}
}else{
printf("int N wrong");
}
return 0;