You are on page 1of 6

NAME : ADITYA RAJ

REGISTRATION NO. : 2021UGCE083


DEPARTMENT : CIVIL ENGINEERING
Program 1

Program 2
Program 3

Program 4
Program 5

Problem 6 Write a program to calculate volume and surface area of a sphere.[input


radius,
area=4*PI*R*R,
vol=area*R/3]
Problem 7 Write a program to print the integer part and fractional part for the given
number.

Problem 8 Write a program that accepts length in inches(integer value) and convert
them into feet and yards.
Program 9 Write a program to compute area of a triangle whose sides a,b,c are given.
[later on pre assume that the length given as inputs are valid lengths. Later on, you need
to perform a check whether
a+b>c, b+c>a and c+a >b are true before finding the area.]

Program10 Write a program that accept two integer number from user, and swap two
given numbers with and without using third variable ( +, - operator).

You might also like