Skip to content

Conversation

@JananiTcoder
Copy link

No description provided.

@JananiTcoder JananiTcoder changed the title Updated print Statement december Dec 27, 2024
Copy link
Author

@JananiTcoder JananiTcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//(4) Plant Growth Tracker-fibonacci series
#include<stdio.h>
int main(){
int n,i,f=1,s=1,t;
printf("enter number of month:");
scanf("%d",&n);
for(i=0;i<n-2;i++){
t=f+s;
f=s;
s=t;
}printf("in %d month number of plants is %d",n,t);
return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant