What change is required in the following program so that its output becomes 3,6,11,20,37,......1034?

Code
  1. #include<stdio.h>

  2. #include<math.h>

  3. ",%d "
Copyright GeekInterview.com

Questions by Swati Goel

Showing Answers 1 - 3 of 3 Answers

prakash pankaj

  • Dec 1st, 2012
 

Code
  1. #include<stdio.h>

  2. #include<conio.h>

  3. "%d"

  Was this answer useful?  Yes

nira

  • Jul 1st, 2014
 

Much easier approach,
this is a logic question, not programming

Code
  1.    

  2.     #include<stdio.h>

  3.     #include<math.h>

  4. ",%d "

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions