computer lab record
computer lab record
Program 1:
Read two integers and print their sum and difference
Program 2:
To find Area and circumference of a circle
Program 3:
Fahrenheit to Celsius conversion
Program 4:
To find total and average of 5 marks
Program 5:
To print the sum of four digits
Program 6:
Converting Seconds into Hours, Minutes and seconds
Program 7:
To check whether the integer is Odd or Even
Program 8:
Grade of Mark
Program 9:
To print the smallest number from three numbers
Program 10:
To find area of a desired shape
Program 11:
To print first 10 multiples of number
Program 12
To find the sum of natural numbers
Program 13:
To find the factorial of a number
Program 14:
To find the Fibonacci of certain number
Program 15:
To find a power b
Program 16:
To check whether the number is prime
Program 17:
To find the number of digits and printing their sum
Program 18:
To check whether the number is palindrome or not
Program 19:
To read 5 positive integers and print their sum (validate
positive number)
Program 20:
To read a number and print its Armstrong number or not 153
is an Armstrong (153 = 1^3+3^3+5^3)
Program 21:
To read the weekday in number and print the corresponding
day in a loop. The program should terminate only if invalid
weekday is entered