0% found this document useful (0 votes)
34 views1 page

C-Programing Lab Assignments: Assignment 1

This document outlines 7 programming assignments for a C programming lab. The assignments include: 1) Writing a program to display personal information. 2) Finding the size of different data types. 3) Converting between decimal, octal, and hexadecimal numbers. 4) Finding the ASCII code of a character. 5) Creating a basic calculator. 6) Calculating the areas of different shapes using separate functions. 7) Swapping two numbers with and without a third variable. It also includes calculating simple interest and the average and mean of 3 numbers.

Uploaded by

Deep Raj Jangid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
34 views1 page

C-Programing Lab Assignments: Assignment 1

This document outlines 7 programming assignments for a C programming lab. The assignments include: 1) Writing a program to display personal information. 2) Finding the size of different data types. 3) Converting between decimal, octal, and hexadecimal numbers. 4) Finding the ASCII code of a character. 5) Creating a basic calculator. 6) Calculating the areas of different shapes using separate functions. 7) Swapping two numbers with and without a third variable. It also includes calculating simple interest and the average and mean of 3 numbers.

Uploaded by

Deep Raj Jangid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 1

C-PROGRAMING LAB ASSIGNMENTS

!"#$%& ()*+ ,-./ 0.1/


%+23425 #65*7)8 92.2:2128 ;<1+=>5
#<:.2*.?@@ABCC@D@E
F336G:H):. D

Q1. WAP to display information about you
I. Name
II. Address
III. Branch
IV. City

Q2. WAP to find size of
I. long int
II. short float
III. signed char

Q3. WAP to convert given no.
I. decimal to octal
II. hexadecimal to octal
III. octal to hexadecimal

Q4. WAP to find ASCII code of given character.

Q5. WAP to create a calculator that can perform arithmetical
operations like addition, subtraction, division and multiplication.

Q6. WAP to calculate AREA of given by separate functions.
I. Area of circle
II. Area of triangle
III. Area of rectangle
IV. Square

Q7. WAP to swap two numbers
I. By using third variable
II. Without using third variable

Q9. WAP to calculate simple Interest.

Q10. WAP to calculate given formula for 3 numbers
I. Average
II. Mean

You might also like