CS
  • Home
  • Languages
    • Python >
      • Basics
      • Conditions & Loops
      • Functions and Modules
      • Other Data Types
      • Errors and Exceptions
      • Projects
    • C + + >
      • Basics
      • Functions
      • Conditions & Loops
  • Programs
  • About

Basics

1 - Hello WOrld
2 - Output
3 - Comments
4 - Data Types
5 - Variables
6 - Input
7 - Simple Math
8 - ASSIGNMENT OPERATORS
Exercises
  • Output Hello World
  • Output 5 Favorites (color, movies, food, apps, programming languages, etc.)
  • Output your name in large letters with "*" as the lines for the characters.
  • Ask for user's name and output a greeting with the given name.
  • Ask for a number and output the square (power of 2)
  • Ask for a year and calculate the next 5 leap years.
  • Convert a given Fahrenheit temperature to Celsius.

Possible Solutions

Output Hello World
You can also use the line using namespace std; and write cout without the std::

    

Output 5 Favorites (color, movies, food, apps, programming languages, etc.)

    
Powered by Create your own unique website with customizable templates.
  • Home
  • Languages
    • Python >
      • Basics
      • Conditions & Loops
      • Functions and Modules
      • Other Data Types
      • Errors and Exceptions
      • Projects
    • C + + >
      • Basics
      • Functions
      • Conditions & Loops
  • Programs
  • About