Skip to content

Latest commit

 

History

History
264 lines (169 loc) · 9.35 KB

INDEX.md

File metadata and controls

264 lines (169 loc) · 9.35 KB

1. Write a program to input two numbers and print their sum.

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

2. Write a program to input principle amount, rate and time and print Simple Interest. S.I. = (Principle*Rate*Time)/100

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

3. Write a program to input the length and breadth and print the area of the rectangle. Area of a rectangle = length*breadth

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

4. Write a program to input the side and print the area of square. Area of square = side*side

Language:C Author:hypernovaradiation
Language:Python Author:Nitin Kumar
Language:C++ Author:Bhaskar Gupta

5. Write a program to input the radius and print the 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. Write a program to input base and height and print the area of triangle. area of a triangle = (1/2*base*height)

Language:Python Author:Nitin Kumar

7. Write a program to calculate gross salary where,

basic salary is input through keyboard.
da is 10% of bs.
ta is 12% of bs.
hra is 10% of bs.
Language:Python Author:Nitin Kumar

8. Write a program to input the temperature in Fahrenheit and print it in Celsius format. fahrenheit = (celsius * 9/5) + 32

Language:Python Author:Nitin Kumar

9. Write a program to input two numbers and swap them.

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

10. Write a program to input 5 digit numbers and calculate sum of its digits.

Language:Python Author:Nitin Kumar

12. Write a program to 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.

Language:C Author:archit987

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

21. Write a program to input the side of a square and print the perimeter of the square. perimeter of square = 4*side

22. Write a program to input length, breadth and height and output the volume of the cuboid. volume of a cuboid = lengthbreadthheight

23. Write a program to 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. Write a program to input the 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. Write a program to input radius of a sphere and print the volume of sphere. volume of sphere = (4/3)*3.14*(radius)^3

29. Write a program to input side and print the surface area of cube. surface area of cube = 6*side

Language:Python Author:Bobliuuu

30. Write a program to input radius and print the surface area of sphere. surface area of sphere = 4*(22/7)*radius*radius

31. Write a program to input side and print the volume of cube. volume of cube = side*side*side

32. Write a program to 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. Write a program to find the maximum and minimum 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.

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

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

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

47. Write a program to concatenate two strings.

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

49. Write a program to check whether the number is co-prime or not.

50. Write a program to check whether a number is perfect or not.

51. Write a program to print the following pattern:

  1 1 1 1 1
  1       1
  1       1
  1       1
  1 1 1 1 1

52. Write a program to print the following pattern:

    1
   2 2
  3   3
 4     4
5       5
 4     4
  3   3
   2 2
    1

53. Write a program to Merge Sorted Arrays.

54. Write a program to remove Duplicates from Sorted List.

55. Write a program to print the following Pattern:

 1     1       
 2     2
  3   3
   4 4
    5

56. Write a program to print the following pattern:

       1 
     2 3 4
   5 6 7 8 9

57. Write a program to print Pascal's Triangle.

58. Write a program to print the sum of an array.

59. Write a program to print the following pattern:

    1
   123
  12345
 1234567
123456789
 1234567
  12345
   123
    1

60. Write a program to print a welcome text in a separate line.

61. Write a program to find the third angle of a triangle.

62. Write a program to print Pascal's Triangle.

63. Topological Sort: Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge u v, vertex u comes before v in the ordering.

64. Write a program to find the Length of Last Word in a Sentence/String.

65. Write a program to create a circular linked list.

66. Write a program to print a circular linked list.