0% found this document useful (0 votes)
4 views1 page

VB Programming Homework Assignments

The document outlines three programming tasks in Visual Basic (VB). The first task involves creating a program that performs arithmetic operations based on user input. The second task requires a program to sum user-entered numbers until the user inputs zero, and the third task is to calculate the sum of the first n natural numbers using a for loop.

Uploaded by

imanzijoliekelie
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

VB Programming Homework Assignments

The document outlines three programming tasks in Visual Basic (VB). The first task involves creating a program that performs arithmetic operations based on user input. The second task requires a program to sum user-entered numbers until the user inputs zero, and the third task is to calculate the sum of the first n natural numbers using a for loop.

Uploaded by

imanzijoliekelie
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Homework work

a. Write a VB program that asks user an arithmetic operator ('+','-','*' or '/') and
two operands and perform the corresponding calculation on the operands.
b. Write a VB program to add all the numbers entered by a user until user enters
0.
c. Write a program using for loop to find the sum of first n natural numbers
where n is entered by user. Note: 1,2,3... are called natural numbers.

You might also like