Browsing Category

# Programming Programs Questions

49 posts

## 49. Write a program in java to find the sum of all natural numbers from 1 to 100.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm : Step 1: Start Step 2: For I = 1 To 100 If True GoTo Step 3…

## 48. Write a program in java using Sub procedure to print 1, 10, 101, 1010, 10101.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: For i = 1; i<=5; i  =i + 1   For j…

## 47. Write a program in java to ask number and find sum of cube of odd digits.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input Any Number. ( N ) Step 3: S = 0 Step…

## 46. Write a program in java to convert decimal number to octal number.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: input Decimal Number(D) Step 3: While D < > 0 If True…

## 45. Write a program to ask quantity of pen, copy and pencil and their rate and find out the total amount.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input Quantity and Rate Pen, Copy and Pencil. (QP, RP, QC, RC,…

## 44. Write a program to input the day and display whether the day is Saturday or not?(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input the today’s day. d Step 3: If d = “SATURDAY” GoTo…

## 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…

## 42. Write a program to input number as paise and convert into rupees only.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input Paisa. (P) Step 3: RS = P / 100 Step 4:…

## 41. Write a program to display simple interest.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: input Principal, Time, Rate. (P, T, R) Step 3: I = P…

## 40. Write a program to display cost of painting the four walls of a room.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Enter length, breadth, height and cost (l, b, h, c) Step 3:…