Erle Robotics C++ GitBook

Exercises: miscellaneous

Exercise 1

Write a program that asks for txo 3x3 Matrix.Then the porgram sums the matrix and stores the result in the first one(A=A+B).Then prints on the screen the resulting matrix.


Exercise 2

Write a program that takes input array daily temperatures, as floats. and findout the maximum and minimum values.


Exercise 3

Write a program which calculates the sum of all odd numbers upto a particular limit. The limit will be an input to the program.


Exercise 4

Write a program which takes input a string and a character then remove this character in this string.


Exercise 5

Write a program that clasifies angle: acute, straight and obtuse.


Exercise 6

Write a program that input a number and calculates its factorial(use a function called factorial).