Computer Science, asked by satishtalekar72, 3 months ago

write an algorithm for : to give discount of 30 % to customers on purchase of items more than 5000​

Answers

Answered by kd1030601
0

Answer:

Algorithm. Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Assign value to the variable Step 3 → Perform A modulo 2 and check result if output is 0 Step 4 → If true print A is even Step 5 → If false print A is odd STOP.

Answered by upsales
0

Answer:

Step 1: Start.

Step 2: Take 3 numbers as input (Say A,B,C)

Step 3: If A2 = B2 + C2, display 'Pythagorean Triplets'

Step 4: If B2 = A2 + C2, display 'Pythagorean Triplets'

Step 5: If C2 = A2 + B2, display 'Pythagorean Triplets'

Step 6: If no condition of Step 3,4,5 match, display 'Not Pythagorean Triplets'

Similar questions