PROFESSIONAL ACADEMIC STUDY RESOURCES WEBSITE +1 813 434 1028  proexpertwritings@hotmail.com

Computer Science Question

Description

Problem 1: Write a program to print numbers 1 to 50 using while loop.

Problem 2: Write a program to print numbers 1 to 50 using for loop.

Problem 3: Using for loop or while loop, write a program to find the sum of even numbers between 1 and 100.

Problem 4: Consider a simple multiplication table of the following format for integers in the range 1 to 9. Write a program to produce this multiplication table using while loop.

1 x 1 = 1

1 x 2 = 2

1 x 3 = 3

1 x 4 = 4

1 x 5 = 5

1 x 6 = 6

1 x 7 = 7

1 x 8 = 8

1 x 9 = 9

2 x 1 = 2

2 x 2 = 4

9 x 7 = 63

9 x 8 = 72

9 x 9 = 81

Problem 5: Write a program to produce the multiplication table in problem 4 using for loop.

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *