by CodeChum Admin
Did you know that you can also reverse lists and group them according to your liking with proper code? Let's try it to believe it.
Instructions
Input
The first line contains an odd positive integer.
The next lines contains an integer.
5
1
3
4
5
2Output
A line containing a list.
[2,5]-[4]-[3,1]Cubes and Squares
by CodeChum Admin
You can also make a list of numbers, ey? Let's go and have some fun in tweaking the values of each element, but let's give it some twist to add on some fun to the code.
Let's have a go at it!
Instructions:
Instructions
Output
The squares and cubes of the elements in the array.
4
1
1
8
27
.
.
.
Using a do-while loop create a program that will prompt the user for a number and then print out a list 5 odd numbers above the given number(inclusive).
Sample Run1
Enter a number: 10
Output1: 11 13 15 17 19
Sample Run2
Enter a number: 5
Output2: 5 7 9 11 13
input price & quantity.if net price is greater than 10000 the discount is 10%.if we enter -1 as the price then the code must stop and calculate the net price
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements