Problem 1: Write a program to read binary number from user and find the one's complement of that binary number.

Example: 
Input binary number: 01000011 
Ones's complement: 10111100 

Problem 2: Write a program to print ASCII values of all characters using for loop. 

Example: 
Output ASCII values: 
ASCII value of character = 0
ASCII value of character ☺ = 1
ASCII value of character ☻ = 2

Problem 3: Write a program to count frequency of digits in an integer. 

Example: 
Input num: 116540
Output: 
Frequency of 0 = 1 
Frequency of 1 = 2 
Frequency of 2 = 0 
Frequency of 3 = 0 
Frequency of 4 = 1 
Frequency of 5 = 1 
Frequency of 6 = 1 
Frequency of 7 = 0 
Frequency of 8 = 0 
Frequency of 9 = 0 

Problem 4: Write a program to enter any number and check whether given number is palindrome or not using a for loop. Eg 121 would be a palindrome. 

Problem 5: Write a program to print the diamond star(*) pattern based on an input number. 


Problem 6: Write a program to print hollow diamond star (*) pattern series of n rows using for loop. The pattern for 5 should look like: