# 28. Write a program to ask the user to enter the marks in any four subject and display whether the user is pass or fail.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

## Algorithm:

Step 1: Start

Step 2: Input marks of any four subjects. (a , b, c, d)

Step 3: total = a + b + c + d

Step 4: avg = total / 4

Step 5: If avg > 40

GoTo Step 6

Else GoTo Step 7

Step 6: Print “ You are Pass”

GoTo Step 8

Step 7: Print “ You are Fail”

Step 8: Stop/End

## 25. Write a program to display total surface area of hemisphere.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input Radius (R) Step 3: A = 3 * 3.14 * R…

## 24. Write a program to ask n number and print the sum square of first n natural numbers.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input the number (N) Step 3: S = N * (N +…

## 43. Write a program to input selling price and cost price calculate profit or loss percentage.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input cost price and selling price (cp, sp) Step 3: If cp…