0% found this document useful (0 votes)
28 views2 pages

Imp Questions Cs - I

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Imp Questions Cs - I

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IMP PROGRAMS IN C++

1. Write a C++ program which finds fibonacci series of 'n' terms.

2. Write a C++ program to find factorial of a number during execution


by using constructor function.

3. Write a C++ program to find entered number is armstrong


number OR NOT armstong.

4. Implement a class average that accepts value of three float


variables another function print() average of three numbers

5. Write a C++ program to accept 10 integers in an array and find


its sum and average.

6. Write a C++ function to find surface area of a sphere.


(Hint : Surface area of sphere = A = 4nr%)

7. Writc a C++ program to accept a sentence of 80 characters and


count number of words in a sentence.

8. Write a class based C++ program to accept two integers and find
i's GC.D.(Greatest Common Divisor)

9. Write a C++ program to find a factorial of integers from 1 to 5.


10. Write a C+ program to count and print occurrence of the
character ‘M"in a given string of maximum 79 characters.

11. Write C++ program to read any integer and then check whether
it’s prime or not prime no.

12. Write C++ program to generate and print first 15 terms of


fibonacci. Series (1,1,2,3,5……)

13. Write a c++ program to check integer is palindrome or not

14. Write a c++ program to check integer odd or even

15. Write a c++ program to find smallest in array of 10 floats using


pointer?

16. Write a c++ program to find area of trangle using class ?

You might also like