## 2. The distance between two cities (in km.) is input through the keyboard. Write a program to convert and print this distance in meters, feet, inches and centimeters.

Program: 52 Write a program to convert the distance from km to m,cm,feet and inches. | Let Us C Solutions

## 1. Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.

Program: 51 Write a program to calculate his gross salary. | Let Us C Solutions Output: Enter Basic Salary: 1250.50 Basic Salary: 1250.50 Dearness Allowance:

## 50-Write a program to print a to z or A to Z by user choice.

Program: 50 Write a program to print a to z or A to Z by user choice. Output: Enter u

## 49-Write a program to display A to Z characters.

Program: 49 Write a program to display A to Z characters. Output: A B C D E F G H

## 48-Write a program to compare two strings.

Program: 48 Write a program to compare two strings. Output: Enter first string: EASTER Enter second string: SCIENCE Strings are

## 47-Write a program to join two strings.

Program: 47 Write a program to join two strings. Output: Value of first string is: EASTERSCIENCE

## 46-Write a program to copy the string.

Program: 46 Write a program to copy the string. Output: Value of second string is: EASTERSCIENCE

## 45-Write a program to calculate the length of string.

Program: 45 Write a program to calculate the length of string. Output: Length of EASTER SCIENCE is: 14