Assignment 4: Do All The Questions Using While Loop
Assignment 4: Do All The Questions Using While Loop
Write a program, which will produce a table of values of i, y and x, where y varies from 1 to 6, and for each value of y, x varies from 5.5 to 12.5 in steps of 0.5 . Implement a program that takes the number of students in a class from the user. Calculate their sum and average. Implement a program that displays the factorial of a user defined positive integer. If the integer is not positive, convert it to a positive number and then calculate factorial. Implement a program that takes the value of base and exponent from the user. The program should determine and display the result of base^exponent.