KEMBAR78
Assignment 2 | PDF
0% found this document useful (0 votes)
25 views2 pages

Assignment 2

The document outlines a practical assignment for the B.Sc.(IT) Semester-1 course titled 'Introduction to Programming' at Smt. Chandaben Mohanbhai Patel Institute of Computer Applications. It includes a list of programming tasks that cover various topics such as printing numbers, calculating areas, performing arithmetic operations, and using bitwise operations. The assignment is dated July 30, 2025.

Uploaded by

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

Assignment 2

The document outlines a practical assignment for the B.Sc.(IT) Semester-1 course titled 'Introduction to Programming' at Smt. Chandaben Mohanbhai Patel Institute of Computer Applications. It includes a list of programming tasks that cover various topics such as printing numbers, calculating areas, performing arithmetic operations, and using bitwise operations. The assignment is dated July 30, 2025.

Uploaded by

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

Smt.

Chandaben Mohanbhai Patel Institute of Computer Applications


Sub: CTUC101: Introduction to Programming
B.Sc.(IT) SEMESTER-1
Practical Assignment-2

Date: 30.07.2025

1. Write a program to print any integer number.


2. Write a program to print any float number (with %f, %e, %E, %g, %.3f).
3. Write a program to print any double number (with %f and %lf).
4. Write a program to print any integer number (e.g. with %10d , %-10d,
%010d).
5. Write a program to print any character (with %c, %d).
6. Write a program to print any string.
7. Write a program to print a number entered by user.
8. Write a program to ask the user to enter two numbers and display them.
9. Write a program to input three numbers (using single scanf) and display
them (using single printf).
10.Write a program to add two numbers entered by the user.
11.Write a program to add two numbers without using third variable.
12.Write a program to find area of rectangle.
Area = Length * Width
13.Write a program to find area of triangle.
Area = (height * base)/2
14.Write a C program to find average of five numbers entered by user.
15.Write a program to find simple interest.
SI = (P*R*N)/100
16.Write a program to calculate area of circle.
Area = π * r * r
17. Write a program to input marks of five subjects of a student and calculate
total marks and percentage.
18.Write a program to read two numbers from user and print their addition,
subtraction, multiplication and division on screen using shorthand
operators.
19. Write a program to perform BITWISE AND, OR, XOR operations on
two integer values a= 5 & b=9.
20. Write a program to shift the bits right by 1 position and left by 2 positions
(take int a=4).

You might also like