Second Assignment
Second Assignment
Second Assignment
3) Write a program to calculate factorial of a number by accepting input from the user?
4)Write a program to calculate the sum and average of First n natural numbers by taking n as input from
the user?
5)Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,
The numbers obtained should be printed in a comma-separated sequence on a single line along with the
total number count.
7)Write a program that accepts a sentence and calculate the number of letters and digits.
LETTERS 13
DIGITS 3
8)write a program to print the multiplication table of n,by taking n as input from user
9)Write a program to calculate the area of the triangle by accepting base and height as integer/float
input from the user?
10)Write a program to find the greatest number from three numbers by accepting three integer inputs
from the user?