Write a program using switch case to :
1 . find and display the diagonal of a square
taking side of square as an input.
2.Find and display the final velocity of vehicle
using the formula:
v² = u² + 2as
take initial velocity(u) , acceleration(a) and
distance covered(S) as an input.
3. take three unequal numbers as an input and
display the second smallest number.
4. find and display the sum of the given series.
S = 1+(1*2)+(1*2*3)+………………+(1*2*3*4*…….*n). 5. take a number as an input and check whether the
number is palindrome or not .Display the message
accordingly.
(A number is said to be palindrome if the new
number obtain after reversing the digits is same as
the original number)
Example: sample input: 707
Sample output: 707
So 707 is not a palindrome number
Answers
Answered by
6
Similar questions