Advertisement
Ali2409

Untitled

Oct 9th, 2022
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.18 KB | None | 0 0
  1. Working with basic C# and ASP .NET
  2. a. Create an application that obtains four int values from the user and
  3. displays the product.
  4. b. Create an application to demonstrate string operations.
  5. c. Create an application that receives the (Student Id, Student Name,
  6. Course Name, Date of Birth) information from a set of students. The
  7. application should also display the information of all the students once
  8. the data entered.
  9. d. Create an application to demonstrate following operations
  10. i.Generate Fibonacci series.
  11. ii. Test for vowels.
  12. iii. Use of foreach loop with arrays.
  13. a. Create an application that obtains four int values from the user and
  14. displays the product.
  15. Step1:-
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using System.Text;
  20. using System.Threading.Tasks;
  21. namespace pract1_a
  22. {
  23. class Product
  24. {
  25. static void Main(string[] args)
  26. {
  27. int a, b, c, d, product;
  28. Console.WriteLine("Enter four integers");
  29. a = Convert.ToInt32(Console.ReadLine());
  30. b = Convert.ToInt32(Console.ReadLine());
  31. c = Convert.ToInt32(Console.ReadLine());
  32. d = Convert.ToInt32(Console.ReadLine());
  33. product = a * b * c * d;
  34. Console.WriteLine("Product="+product);
  35. Console.ReadKey();
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement