Questions

Q:

Write a program to generate the Fibonacci series in c?

Answer

 #include<stdio.h>
int main(){
    int k,r;
    long int i=0l,j=1,f;

    //Taking maximum numbers form user
    printf("Enter the number range:");
    scanf("%d",&r);

    printf("FIBONACCI SERIES: ");
    printf("%ld %ld",i,j); //printing firts two values.

    for(k=2;k<r;k++){
         f=i+j;
         i=j;
         j=f;
         printf(" %ld",j);
    }
 
    return 0;
}

Sample output:
Enter the number range: 15
FIBONACCI SERIES: 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2329
Q:

Many European empires arose in the wake of

A) the expansion of African kingdoms like the Ghana B) Mongol invasions throughout the region
C) Hun invasions that triggered a mass migration D) the collapse of the Byzantine Empire
 
Answer & Explanation Answer: D) the collapse of the Byzantine Empire

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2329
Q:

The International Court of justice is located at

A) Geneva B) Hague
C) Amesterdam D) Vienna
 
Answer & Explanation Answer: B) Hague

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

2 2328
Q:

The NAM sumit which demanded expansion of the United Nation Security Council had met at

A) Cairo B) Jakarta
C) Teheran D) Harare
 
Answer & Explanation Answer: B) Jakarta

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

1 2328
Q:

Who started Shudhi Movement?

A) Dayananda Saraswathy B) Sri Aurobindo
C) Swami Vivekananda D) Yashoda Bhai
 
Answer & Explanation Answer: A) Dayananda Saraswathy

Explanation:

Shudhi Movement was started by Dayananda Saraswathy.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

3 2328
Q:

What was the theme of 'International Day of Forests 2017' that was observed on 21st March ?

A) Our Trees Our Forests B) Save Trees Save Forests
C) Trees and Forests D) Forests and energy
 
Answer & Explanation Answer: D) Forests and energy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

1 2328
Q:

The common name of sodium bicarbonate is _____.

A) baking soda B) borax
C) bleach D) epsom salt
 
Answer & Explanation Answer: A) baking soda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

3 2328
Q:

Which phrase best describes rough ER?

A) studded with ribosomes B) fewer solutes than the cell
C) stored in the central vacuole D) protected by vesicles
 
Answer & Explanation Answer: A) studded with ribosomes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

4 2328