1.Input-Output Programs



Si  No.
Title Of Programs
Source Code In C
Input & Output
Instructions
001.
A program that prints a “Sentence”.
002.
A program that print the value of integer number “n”.
003.
A program that read & display an integer number (1).
004.
A program that read & display an integer number (2).
005.
A program that read & display floating point number.
006.
A program that read & display long number.
007.
A program that read & display double number.
008.
A program that read & display any character.
009.
A program that read ASCII value & display equivalent character.
010.
A program that read any character & display ASCII value.
011.
A program that read any lower case character & display in upper case.
012.
A program that read any upper case character & display in lower case.
013.
A program that read any decimal number & display equivalent octal number.
014.
A program that read any decimal number & display equivalent hexadecimal number.
015.
A program that read any octal number & display equivalent decimal number.
016.
A program that read any hexadecimal number & display equivalent decimal number.
017.
A program that read & display a “Word”.
018.
A program that read & display a “Sentence”.
019.
A program that read any date in the format DD/MM/YYYY & displays day, month & year separately.
020.
A program that read any date in the format DD-MM-YYYY & displays day, month & year separately.
021.
A program that read any date in the entire following format
        i)            DD/MM/YYYY
       ii)            DD-MM-YYYY
     iii)            DD MM YYYY
     iv)            DD,MM,YYYY
 & displays day, month & year separately.

2. Operator Using Programs



022.
A program that read two integer & display sum.
023.
A program that subtracts two integers.
024.
A program that read two integer & display product.
025.
A program that divide two integers.
026.
A program that divide two floating point numbers.
027.
A program that read two integer & display remainder.
028.
A program that read radius of a circle & display area.
029.
A program that read temperature in Celsius & display Fahrenheit.
030.
A program that read temperature in Fahrenheit & display Celsius.
031.
A program that read two number & display bitwise AND.
032.
A program that read two number & display bit-wise OR
033.
A program that read two numbers & display bit-wise Exclusive OR.
034.
A program that read a number & divide by two using shift operator.
035.
A program that read a number & multiply by 2 using shift operator.
036.
A program that read a number & multiply by 5 using shift operator.
037.
A program that read a number & multiply by 4 using bitwise AND.
038.
A program that read a number & mod by 8 using bitwise AND.

3. Using Math.h Programs



039.
A program that read any integer number & display absolute value.
040.
A program that read any angle Īø and display sin (Īø).
041.
A program that read any angle Īø and display cos(Īø).
042.
A program that read any angle Īø and display tan(Īø).
043.
A program that read any angle Īø and display cot(Īø).
044.
A program that read any angle Īø and display sec(Īø).
045.
A program that read any angle Īø and display cosecĪø).
046.
A program that read a value n & display sin inverse(n).
047.
A program that read a value n & display cos inverse(n).
048.
A program that read a value n & display tan inverse(n).
049.
A program that read a value n & display cot inverse(n).
050.
A program that read a value n & display sec inverse(n).
051.
A program that read a value n & display cosec inverse(n).
052.
A program that read two numbers(x,y) & display the value of x to the power y.
053.
A program that read any number & display its square root.
054.
A program that read any number x & display e to the power x.
055.
A program that read any number x & display e to the power log(x).
056.
A program that read any number x & display e to the power log10(x).

4. Using If , If. . . . . . . Else



057.
A program that read an integer & display odd or even.
058.
A program that read two numbers & display maximum (1).
059.
A program that read two numbers & display maximum (2).
060.
A program that read two numbers & display minimum (1).
061.
A program that read two numbers & display minimum (2).
062.
A program that read three numbers & display maximum.
063.
A program that read three numbers & display minimum.
064.
A program that read three numbers & display medium.
065.
A program that read mark & display pass or fail.
066.
A program that read mark & display result in division.
067.
A program that read mark & display result in  grade.
068.
A program that read any year & display leap year or not leap year.
069.
A program that read three numbers (a,b,c) & determine the roots of the quadratic equation :
Ax2+bx+c=0.

5. Using Conditional Operator



070.
A program that read an integer & display odd or even.
071.
A program that read two numbers & display maximum (1).
072.
A program that read two numbers & display maximum (2).
073.
A program that  read two numbers & display minimum(1).
074.
A program that  read two numbers & display minimum(2).