Professional Documents
Culture Documents
I. 2+2 II.(a+b)/(p+q)2
C. Find the output of the following C++ code: -
#include<iostream.h>
void main ()
{
int x=10, y=5,z=3;
for(x=15;x>=y;x--)
{
if(x%3)
z+=x;
else
z+=2*x;
cout<<x<<z<<endl;
x-=6;
}
D. How can you give a single line and multiline comment in C++, Explain with suitable
example?
E. Which header file are required for: -
I.puts() II.sqrt() III.rand() IV. Isupper()
F. Write a C++ program to print Fibonacci series 1,1,2,3,5,8, up to n terms enterd by user.
**************