You are on page 1of 1

Problem 1: Write a program that results an integer number reversing the digits of the

inputted number. For example, if the inputted number is 861, it would generate the
number 168. You should use Array structure to store the digits that form the reverse
number. Also construct the resultant number from the digits stored in the array.

[Hint: 168 = 100+60+8]

Problem 2: Write a program in C to print the Floyd's Triangle (you can determine the
number of rows as you like). For example: If the number of rows are 5, it will show as
follows.

1
01
101
0101
10101

You might also like