Conditional Control Structure: (A) Pattern of Numbers I.E. For Input As 5, Following Pattern Should Be Printed
Conditional Control Structure: (A) Pattern of Numbers I.E. For Input As 5, Following Pattern Should Be Printed
(a) Pattern of numbers; i.e. for input as 5, following pattern should be printed:
1
12
123
1234
12345
(b) Pattern of numbers; i.e. for input as 5, following pattern should be printed:
1
12
123
1234
12345
1234
123
12
1
(c) Diamond pattern; i.e. for input as 5, following pattern should be printed.
*
***
*****
*******
*********
*******
*****
***
*
(d) Pattern of numbers; i.e. for input as 5, following pattern should be printed:
12345
1234
123
12
1
12
123
1234
12345
Q2. Write a C program to convert binary number to octal number.
Q3. Write a program to convert binary to decimal number.
Q4. Write a program to take two numbers (n and m) as input from the user and print the multiplication
tables of numbers from n to m (both inclusive).