C-Sharp Practice Exercises
Q1. If five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint: use the modulus operator % ).
Q2. If a five digit number is input through the keyboard, write a program to reverse the number.
Q3. If the length of three sides of a triangle are input through the keyboard, write a program to find the area of the triangle.
Q4. Write a C# Sharp program to print the result of the specified operations. Test data:
- -1 + 4 * 6
- ( 35+ 5 ) % 7
- 14 + -4 * 6 / 11
- 2 + 15 / 6 * 1 - 7 % 2
Q5. If value of an angle is input through the keyboard, write a program to print all its trignometric ratios.
Q6.Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.
Q7. Write a C# program that take a input as number and print its multiplication table.
Q8. Consider a currency system in which there are notes of seven denomination namely, Rs 1, Rs 2, Rs 5, Rs 10, Rs 50 , Rs 100. If a sum of Rs.N is entered through the keyboard, write a program to compute the smallest number of notes that will combine to give Rs N.
Q9. Write a C# program to takes three numbers (x,y,z) as input and prints the output of (x+y).z and x.y+x.z.
Q10. Write a C# program to check two given integers and return true if one is negative and one is positive.
Q11. Write a function to find out the G.C.D.
Q12. write a menu driven program to 1st menu is Mean of 5 values, 2nd Menu S.D, 3rd Menu is Gross pay calculator of Employee, 4th menu is Student Grade finder.
Q13. Write a program to Sort out the numbers and Find mini and max number from it and also find the sum of arrays and also find which number is repeated
Q14. Write a C# program that inputs the some text from user find out how many characters in it, how many spaces in it and convert the whole text into Capital letters and if it is already in capital letter convert it into small letter
Q15. Write a program to delete all vowels from a sentence.
Q12. write a menu driven program to 1st menu is Mean of 5 values, 2nd Menu S.D, 3rd Menu is Gross pay calculator of Employee, 4th menu is Student Grade finder.
Q13. Write a program to Sort out the numbers and Find mini and max number from it and also find the sum of arrays and also find which number is repeated
Q14. Write a C# program that inputs the some text from user find out how many characters in it, how many spaces in it and convert the whole text into Capital letters and if it is already in capital letter convert it into small letter
Q15. Write a program to delete all vowels from a sentence.
Like us on our facebook page Developer Planet
C-Sharp Practice Exercises
Reviewed by Developer Planet
on
November 01, 2018
Rating:
No comments: