The document is a lab assignment record submitted by a student. It contains 10 questions on basic C programming concepts like input/output statements, data types, operators, and using conditional statements. The questions cover printing output, arithmetic operations, area calculations, temperature conversions and demonstrating different operator types.
The document is a lab assignment record submitted by a student. It contains 10 questions on basic C programming concepts like input/output statements, data types, operators, and using conditional statements. The questions cover printing output, arithmetic operations, area calculations, temperature conversions and demonstrating different operator types.
Q2 WAP to add any two numbers . Q3 WAP to find area of any triangle. Q4 WAP to covert Celsius to Fahrenheit . Q5 WAP to find area and circumference of any circle TYPES OF OPERATORS
Objective:- Different types of operator Arithmetic, Relational,
Logical, Increment/Decrement, Conditional
Q6 WAP to demonstrate the working of arithmetic operators
Arithmetic Operators are use to do numeric calculations.
Q7 WAP to demostrate the working of relational operators
Relational Operator is an operator that compares two values.
It is also called comparison operator that return either true(1) or
false(0). Q8 WAP to demostrate the working of logical operators
Logical Operators are used to combine two expressions. The
expression maybe variable, constant or function.
C language can support three logical operators AND(&&) , OR(| |) ,
NOT(!). Q9 WAP to demostrate the working of increment/decrement operators.
Increment (++) Operator increases the value by 1.
Decrement (--) Operator decreases the value by 1.
Both are unary operators.
Q10. Write a program to use conditional operator.
The symbol ?: represents conditional operator.(ternary operator)
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More