Samsung Galaxy Note, 4G LTE Plans, Transfer Photos Videos from iPhone to Samsung, Network Performance, Mobile Accounts, Furious Gold SPD TooL, Latest Version Full Setup

Info Array Problem Solving using C#

Info Array Problem Solving using C# - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info Array Problem Solving using C# many already we collect data to make this article so you do not miss the news, please see:

Articles : Info Array Problem Solving using C#
full Link : Info Array Problem Solving using C#
Article Csharp, Article programs,

You can also see our article on:


Info Array Problem Solving using C#

Array Problem Solving using C#

Program Statement:
Create two arrays student_rollno and student_marks, both of same size. First array will save the rollnos of students and second array will save the marks of students against his rollno. e.g. if student_rollno[0] contains 197 then student_marks[0] will contains the marks of roll no 197.
You have to print the roll no of student with maximum marks.

Solution:
 public class stud
{
int n, max = 0, check = 0;
public void marks()
{
Console.Write("\n\t\tEnter number of students : ");
n = Convert.ToInt32(Console.ReadLine());
int[] array1 = new int[n];
int[] array2 = new int[n];
for (int x = 0; x < n; x++)
{
Console.Write("\n\t\tEnter Roll No : ");
array1[x] = Convert.ToInt32(Console.ReadLine());
Console.Write("\n\t\tEnter Marks : ");
array2[x] = Convert.ToInt32(Console.ReadLine());
if (max < array2[x])
{
max = array2[x];
check = x;
}

}
Console.WriteLine("\n\t\tStudent {0} has maximum marks!\n", array1[check]);
}
}




articles Info Array Problem Solving using C# finished in discussion

hopefully the information we convey about Info Array Problem Solving using C# can benefit you in getting new knowledge about technology,

you just finished reading the information Info Array Problem Solving using C# we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2014/01/info-array-problem-solving-using-c.html and do not forget to always visit this blog to get the latest information every day.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : Info Array Problem Solving using C#

0 komentar:

Posting Komentar