I have chosen to write a Fibonacci series coding problem on an online compiler.

AnswerBot
1mo
Fibonacci series is a sequence where each number is the sum of the two preceding ones, starting from 0 and 1.
The Fibonacci series starts with 0 and 1.
Each subsequent number is the sum of the previous ...read more
Sreeya Dash
2y
#include <stdio.h>
int main()
{
int a=0;
int b=1;
int i,c;
for (i=0;i<6;i++)
{
printf("%i\n",a);
c=a+b;
a=b;
b=c;
}
}
Help your peers!
Add answer anonymously...
Cognizant Programmer Analyst Trainee interview questions & answers
A Programmer Analyst Trainee was asked 2w agoQ. Explain the OOPs concepts with examples.
A Programmer Analyst Trainee was asked 2w agoQ. What is the process of web development?
A Programmer Analyst Trainee was asked 2mo agoQ. Tell me about inheritance with an example.
Popular interview questions of Programmer Analyst Trainee
A Programmer Analyst Trainee was asked 2w agoQ1. Explain the OOPs concepts with examples.
A Programmer Analyst Trainee was asked 2w agoQ2. What is the process of web development?
A Programmer Analyst Trainee was asked 2mo agoQ3. Tell me about inheritance with an example.
Top HR questions asked in Cognizant Programmer Analyst Trainee
A Programmer Analyst Trainee was asked 5mo agoQ1. Can you tell me about your project?
A Programmer Analyst Trainee was asked 9mo agoQ2. Are you willing to relocate for this job role?
A Programmer Analyst Trainee was asked 10mo agoQ3. Are you willing to work night shifts?
>
Cognizant Programmer Analyst Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

