Code Monkey home page Code Monkey logo

cpp-programs's Introduction

cpp-programs

C++ practice problems:

  1. HelloWorld : Basic Hello World Program
  2. SumOf90+10 : Prints sum of 90 and 10
  3. SumOfTwoNumbers : sums any two numbers
  4. CalculatorIfStatement : Calculator with if statements
  5. CalculatorSwithStatement : Calculator with switch statements
  6. PrintCounting : Prints the counting
  7. PrintBackCounting : Prints the back counting
  8. PrintTable : Prints the table of the number the user wants
  9. PrintEvenNumbers : Prints the even numbers
  10. AddingNaturalNumbers : Sums all digits till the number the user has put
  11. PrintAlphabets : Prints Capital or small alphabets as per user
  12. PrintFactors : Prints the factors of any number as per user
  13. MenuDrivenAreaPer : A program to calculate the Area and Perimeter of different shapes
  14. HalfPyramid1 : Prints a Half Pyramid of Stars as per user
  15. HalfPyramid2 : Prints a Half Pyramid of Numbers as per user
  16. HalfPyramid3 : Prints a Half Pyramid of Alphabets as per user
  17. HalfPyramid4 : Prints an Inverted Half Pyramid of Stars as per user
  18. HalfPyramid5 : Prints an Inverted Half Pyramid of Numbers as per user
  19. HalfPyramid6 : Prints a Floyd's Triangle Half Pyramid as per user
  20. SumOfFiveNumbersUsingArray : Prints the sum of Five numbers using Array
  21. PrintOddNumbers : Prints the Odd Numbers
  22. Pyramid1 : Prints a Pyramid of Stars as per user
  23. Pyramid2 : Prints a Pyramid of Numbers as per user
  24. Pyramid3 : Prints a Pyramid of Numbers in a different form as per user
  25. Pyramid4 : Prints a Floyd's Triangle Pyramid as per user

cpp-programs's People

Contributors

sdhanshu avatar

Stargazers

 avatar

Watchers

 avatar

cpp-programs's Issues

Add more HalfPyramids

Below are the half pyramids to be added:

  1. Inverted Half Pyramid of *s : For height entered by user, print half pyramid like in the example
For Height = 5

O/P:
*****
****
***
**
*
  1. Inverted Half Pyramid using numbers : For height entered by user, print half pyramid like in the example
For Height = 5

O/P:
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
  1. Floyd's Triangle Half Pyramid : For height entered by user, print half pyramid like in the example
For Height = 5

O/P:
1
2 3
4 5 6
7 8 9 10 
11 12 13 14 15

Add MenuDrivenAreaPer

Make a Program that has couple of menus.

First Menu is Select Shape:

  1. Circle
  2. Rectangle
  3. Square
  4. Triangle

followed by second menu that has the option of Area or Perimeter.

It takes inputs like radius, length and breadth as per above and displays results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.