Skip to content

Latest commit

 

History

History
176 lines (104 loc) · 7.01 KB

INDEX.md

File metadata and controls

176 lines (104 loc) · 7.01 KB

1. Input two numbers and print their sum.

Language:C Author:glitchy-coder-exe
Language:Python Author:Nitin Kumar
Language:Java Author:Bhavya Kishor Gatya

2. Input principle amount, rate and time and calculate S.I. S.I. = (Principle*Rate*Time)/100

Language:C Author:glitchy-coder-exe
Language:Python Author:Nitin Kumar
Language:Java Author:Bhavya Kishor Gatya

3. Input length and breadth and calculate area of rectangle. Area of rectangle = length*breadth

Language:C Author:glitchy-coder-exe
Language:Python Author:Nitin Kumar
Language:Java Author:Bhavyakishor

4. Input the side and calculate area of square. Area of square = side*side

Language:C Author:hypernovaradiation
Language:Python Author:Nitin Kumar

5. Input radius and calculate area and circumference of circle. area of a circle = 3.14*radius*radius and circumference of circle = 2*3.14*radius

Language:C Author:hypernovaradiation
Language:Python Author:Nitin Kumar

6. Input base and height and calculate area of triangle. area of a triangle = (1/2*base*height)

Language:Python Author:Nitin Kumar

7. If Basic salary is input through keyboard write a program to calculate gross salary. Where,

da is 10% of bs.
ta is 12% of bs.
hra is 10% of bs.
Language:Python Author:Nitin Kumar

8. Input temperature in Fahrenheit and convert into Celsius. fahrenheit = (celsius * 9/5) + 32

Language:Python Author:Nitin Kumar

9. Input two numbers and swap them.

Language:C Author:Bhumi54321
Language:Python Author:Nitin Kumar

10. Input 5 digit numbers and calculate sum of its digits.

Language:Python Author:Nitin Kumar

12. Input two variables and swap them using a function.

Language:C Author:Bhumi54321

13. Write a program to copy content from one file to another.

Language:C Author:Bhumi54321

14. Write a program that given 2 numbers, n and k, calculate n to the power of k.

Language:C Author:Napalion
Language:Python Author:Nitin Kumar

15. Write a program that print True if the number is odd and False if the number is even.

Language:C Author:Napalion
Language:Python Author:Nitin Kumar
Language:Java Author:Bhavya Kishor Gatya

16. Write a program that given 3 numbers, a, b and c, print the roots of the equation ax² + bx + c = 0.

Language:Python Author:Nitin Kumar

17. Write a program that accepts a number from a user and prints the factorial of that number

(the program should find factorial till 20) Language:C Author:raporaz03
Language:C Author:hypernovaradiation
Language:Python Author:Nitin Kumar

18. Write a program to input a number a user from the user and print the sum of digits of that number.

Language:C Author:hououinkyouma01

19. Write a program to print the palindrome of a string.

20. Write a program to print the reverse of a number.

21. Input side of a square and print perimeter of the square. perimeter of a square = 4*side

22. Input length, breadth and height and output the volume of the cuboid. volume of a cuboid = lengthbreadthheight

23. Input the sides of a triangle and print the area of a triangle using heron's formula. heron's formula = (S*(S-A)*(S-B)*(S-C))^1/2 where S=(A+B+C)/2 and A,B and C are the sides of the triangle.

24. Input radius and height of the cylinder and print its volume. volume of cylinder = 3.14*radius*radius*height

25. Write a program to enter radius and height and print the curved and total surface area of cylinder. curved surface area = 2*3.14*radius*height and total surface area = 2*3.14*radius*(radius*height)

26. Write a program to print the following pattern:

* 
* * 
* * * 
* * * *

Language:Kotlin Author:jackson-roberio

27. Write a program to print the following pattern:

* * * * 
* * * 
* * 
*

Language:Kotlin Author:jackson-roberio

28. Input radius of a sphere and print the volume of sphere. volume of sphere = (4/3)*3.14*(radius)^3

29. Input side and print the surface area of cube. surface area of cube = 6*side

Language:Python Author:Bobliuuu

30. Input radius and print the surface area of sphere. surface area of sphere = 4*(22/7)*radius*radius

31. Input side and print the volume of cube. volume of cube = side*side*side

32. Input two numbers and print their product.

33. Write a program to print the following pattern:

1 
2 3 
4 5 6
7 8 9 10

[Lnaguage : C++ Author: coder-mohan]

34. Write a program to check whether a number is armstrong or not.

35. Write a program to create fibonacci series.

36. Write a program to print the surface area of a cuboid. surface area of cuboid = 2*(l*b+b*h+h*l) where l is the length, b is the breadth and h is the height.

37. Write a program to print the first 10 Fibonacci numbers without recursion

38. Find minimum and maximum element in an array

39. Write a program to find whether a number is prime or composite .

40. Write a program to calculate aggregate percentage scored by a student in 5 subjects . Percentage = ( Marks Obtained / 500 )*100.

41. Write a program to input a number and print its square.

42. Write a program to input a number and print its cube.

43. Write a program to check whether the number is armstrong or not.

43. Write a program to print the square root of a number.

44. Write a program to print the cube root of a number.

45. Write a program that given 2 numbers, n and k, calculate n to the root of k.

46. Write a program to concatenate two strings.

47. Write a program to print "Hello World!".