This document contains a list of 10 programs for learning C programming. The programs cover basic concepts like printing output, performing arithmetic operations on numbers, calculating perimeter and area, converting between temperature scales, calculating simple interest, and finding maximum/minimum values. Conditionals are also introduced through programs using the ternary operator to check number types and determine output based on number comparisons.
This document contains a list of 10 programs for learning C programming. The programs cover basic concepts like printing output, performing arithmetic operations on numbers, calculating perimeter and area, converting between temperature scales, calculating simple interest, and finding maximum/minimum values. Conditionals are also introduced through programs using the ternary operator to check number types and determine output based on number comparisons.
This document contains a list of 10 programs for learning C programming. The programs cover basic concepts like printing output, performing arithmetic operations on numbers, calculating perimeter and area, converting between temperature scales, calculating simple interest, and finding maximum/minimum values. Conditionals are also introduced through programs using the ternary operator to check number types and determine output based on number comparisons.
Dept of MCA List of programs-Introduction to C programming
1. WAP to print hello world.
2. Write a C program to input two numbers and perform all arithmetic operations like sum, difference, product, quotient and modulus of two given numbers. 3. Write a C program to input length and width of a rectangle and calculate perimeter of the circle. 4. Write a C program to input temperature in Centigrade and convert to Fahrenheit. 5. Write a C program to input principle, time and rate (P, T, R) from user and find Simple Interest. 6. Write a C program to input marks of five subjects of a student and calculate total, average and percentage of all subjects. 7. Write a C program to input a number and check whether number is even or odd using Ternary operator. 8. Write a C program to input three numbers from user and find maximum between three numbers using ternary operator. 9. Write a C program to input a character and check whether the character is alphabet or not using ternary operator. 10. Accept any two numbers, if the first number is greater than second then print the sum of these two; else print the difference. Write C program using ternary operator.