Write a program to print the following series of numbers using iterative construct(for loop):
3,9,27,81,243
Answers
Answered by
0
Answer:
#include<stdio.h>
void main()
{
//variables
int term = 1, multiplier = 3, terminus = 1000; // terminus value was picked at random
// Statements
do
{
term = term * multiplier;
printf("%d\n", term);
}
while(term < terminus);
}
Explanation:
Similar questions