## C Program to Convert a Given Time in 12 AM-PM Format to 24 Hour Military Format

This is a C Program to convert 12-hour AM-PM time format to 24-hour Military time format. Problem Description Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. User has to take input as a string containing a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM), where 01 ≤ hh ≤12 … Read more

## C Program that Takes Input as 2323 and Gives Output as 2332

This is a C program to find a greater number of entered number using same digits. Problem Description This program takes a number as input and finds a greater number of the entered number using same digits. Problem Solution 1. Take a number as input. 2. Reverse the number and store it in the array. … Read more

## C Program to Count No of Lines, Blank Lines, Comments in a given Program

This is a C Program to Count No of Lines, Blank Lines, Comments in a given Program. Problem Description This C Program counts the no of lines, blank lines, comments in a given program. Problem Solution 1. First count the number of lines in a file. 2. Count the number of blank lines. 3. Use … Read more

## C Program to Input 3 Arguments and Operate Appropriately on the Numbers

This is a C Program to input 3 arguments and operate appropriately on the numbers. Problem Description This program take 3 arguments as input and operate appropriately on the numbers. Problem Solution 1. Take two numbers and a operator as 3 arguments. 2. Use switch statement to test the operator. 3. According to the operator, … Read more

## C Program to Print the Range of Fundamental Data Types

This is a C Program to print the range of data types. Problem Description This program prints the range of data types. Problem Solution 1. Convert the bytes into bits. 2. For signed data types, use formula -2^(n-1) to (2^(n-1))-1. 3. For unsigned data types, use formula (2^n) – 1. Where n is the number … Read more

## C Program to Find & Display Multiplication table

This is a C Program to Find & Display Multiplication table. Problem Description This program finds & displays the multiplication table of a particular number. Problem Solution 1. Take a number as input. 2. Using while loop print the number and its product with numbers 1-10 as output. Program/Source Code Here is source code of … Read more

## C Program to Convert Roman Number to Decimal Number

This is a C Program to Convert Roman Number to Decimal Number. Problem Description This program takes a roman number as input and converts it to decimal number. Problem Solution 1. Take a roman number as input. 2. Using switch statement define the value of each roman digit. 3. Through switch statement access each digit … Read more

## C Program to Print a Semicolon without using a Semicolon anywhere in the Code

This is a C Program to print a semicolon without using a semicolon anywhere in the code. Problem Description This program prints a semicolon without using a semicolon anywhere in the code. Problem Solution 1. Print the ASCII value of semicolon and exit. Program/Source Code Here is source code of the C Program to print … Read more

## C Program to Convert Octal to Binary

This is a C program to Convert Octal to Binary. Problem Description This program takes a octal number as input and converts it into binary. Problem Solution 1. Take a octal number as input. 2. Print the binary value of each digit of a octal number. Use switch statement and while loop to do this. … Read more 