Computer Science, asked by aditya313580, 1 month ago

. Write a program to generate the following series : ( 5 )

1, 3, 9, 27, 81, 243, 729, ………. class 8​

Answers

Answered by Archita744
0

Answer:

In c language :-

#include<stdio.h>

#include<conio.h>

void main ()

{

int i,n,r=1;

clrscr();

printf("Enter no of digits :");

scanf("%d",&n);

for(i=0;i<=n;i++)

{

printf("%d",&r);

r=r*3;

}

getch();

}

Similar questions