Programming in C++ – Task 1

This article contain various programming tasks. You need to complete each task before moving on to next article.


Write a C++ program that inputs your name and outputs the same.

Write a C++ program that prints the first letter of your name in a grid of stars.

Write a C++ program to display the size of all the data types.

Write a program to show the use of the escape sequence \a, \b, \n, \r, \t and \\.

Write a program that demonstrates the round-off error in C++.

Write a program that inputs two numbers and outputs their addition, substraction, multiplication, division and modulus(remainder).

Write a program defining numeric overflow of the integer data type.

Leave a Reply