Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Working with basic C# and ASP .NET
- a. Create an application that obtains four int values from the user and
- displays the product.
- b. Create an application to demonstrate string operations.
- c. Create an application that receives the (Student Id, Student Name,
- Course Name, Date of Birth) information from a set of students. The
- application should also display the information of all the students once
- the data entered.
- d. Create an application to demonstrate following operations
- i.Generate Fibonacci series.
- ii. Test for vowels.
- iii. Use of foreach loop with arrays.
- a. Create an application that obtains four int values from the user and
- displays the product.
- Step1:-
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace pract1_a
- {
- class Product
- {
- static void Main(string[] args)
- {
- int a, b, c, d, product;
- Console.WriteLine("Enter four integers");
- a = Convert.ToInt32(Console.ReadLine());
- b = Convert.ToInt32(Console.ReadLine());
- c = Convert.ToInt32(Console.ReadLine());
- d = Convert.ToInt32(Console.ReadLine());
- product = a * b * c * d;
- Console.WriteLine("Product="+product);
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement