#include <stdio.h>
int main()
{
int x = 3;
int n = 5;
for (int i = 2; i <= n; i++)
x = x * 3 - 2;
printf("%d", x);
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdio.h>
int main()
{
int x = 3;
int n = 5;
for (int i = 2; i <= n; i++)
x = x * 3 - 2;
printf("%d", x);
return 0;
}