0% found this document useful (0 votes)
20 views11 pages

Swami Keshwanand Institue of Technology Jaipur, Rajasthan: Submitted By: B-22 Akshat Surana

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.

Uploaded by

Akshat Surana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views11 pages

Swami Keshwanand Institue of Technology Jaipur, Rajasthan: Submitted By: B-22 Akshat Surana

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.

Uploaded by

Akshat Surana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Swami Keshwanand Institue of Technology

Jaipur, Rajasthan

Computer Programming Lab


Assignment Record File

Submitted By: B-22 Akshat Surana


(CSE ,1st Year)
ID-B200710

Submitted To: Ganpat Chauhan Sir


LAB ASSIGNMENT-1
BASIC C PROGRAM AND USE OF OPERATORS

OBJECTIVE:- Structure of C Program, learn about the C library ,


Preprocessor directive , Input- Output statements ,Data types, and
tokens in C Programming.

Q1 WAP to print “HELLO” .

printf() is used to display output on screen

SYNTAX:- printf(“format_specifier”, variable list);

printf is defined in the library stdio.h


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)

You might also like