Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains

Tuesday, 23 May 2017

Top 5 Questions and Answers in Arrays Using C#.Net

 Akansha     16:30:00     C#.Net, TechnicalQuestions     No comments   

Arrays question and answers in C#.net and we are solving critical programs using arrays it can be used to store multiple values at a time.

Arrays Questions and Answers

arrays

Q)Write a program to accept 6 numbers from console and store in array and find the sum of the number?
class A
{
static void main(0
{
int sum=0;
int[] Ar=new int[6];
for(int i=0;i<=5;i++)
{
Console.WriteLine("enter a number");
Ar[i]=int.parse(Console.ReadLine());
sum=sum+Ar[i];
}
Console.ReadLine("The sum is"+sum);
}
Q)Write a program to accept 7 numbers from console and find the sum of even and sum of odd use arrays?
class A
{
static  void main()
{
int esum=0,osum=0;
int[] Ar=new int[7];
for(int i=0;i<=6;i++)
{
Console.WriteLine("enter a number");
Ar[i]=int.parse(Console.ReadLine()0;
if(Ar[i]/2==0)
esum=esum+Ar[i];
else
osum=osum=Ar[i];
}
Console.WriteLine("the even sum is'+esum);
Console.WriteLine("the odd sum is"+osum);
}
}
Q)Write a program to reverse a string?
class A
{
static void main()
{
String s="satyam";
char[] ch=s.ToCharArray[];
for(int i=5;i>=0;i--)
{
Console.WriteLine(ch[i]);
Console.WriteLine();
}
}
Q)Write a program to check the given string  is polindrome or not?
class A
{
static void main()
{
String s=console.readline();
char[] ch=s.ToCharArray();
int length=ch.length;
while(length-1>=0)
{
revs=revs+ch[length-1];
}
if(s==revs)
{
Console.WriteLine("polindrome");
}
else
Console.WriteLine("not polindrome");
}
}
Q)Write a program  to reverse the words?
class A
{
static void main()
{
String S="Ram,is,good,boy";
String[] s1=s.split();
for(int i=s1.length-1;i>=0;i--)
{
Console.WriteLine(s1[i]+"");
}
Console.WriteLine();
}
Friends you like my programming please share to your friends  and you want more programs please comment on my post.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Internal and External Navigation in Windows Forms What is the meaning of external navigation and internal navigation.How to develop internal and external navigations.What are the uses of start(),sho… Read More
  • Polymorphism in OOPs Every interviwer asking first question is what is polymorphism and how it can be works,what are the uses of plymorphism in programming development.w… Read More
  • Brief description about properties Properties in C#.Net Properties Property is a member of a class which we will use to assign the value to a variable as well as which we will u… Read More
  • C#.Net Logical Questions And Answers Logical C#.Net Questions  logical questions 1.Write a console program to print the following pattern? 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2… Read More
  • Detail Introduction about C#.Net Brief Introduction about C#.Net  Introduction C#.Net is the one of the Programming Language the .Net Framework also contains another Pr… Read More
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • Love Failure Quotes and Sad valentines day Quotes
    We Love Someone is a easy process sometime takes long time to love someone love others within short period but anyway always love dependin...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • Top 10 valentine's day Quotes and Greetings wishes
    All Lovers have Anxiety in Valentines day because it is a festival to all lovers in these they enjoy a lot and celebrate the Valentine...
  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • Wonderful sayings about Life.
    I Believe Follow  Things(Life Quotes) I Believe I believe: ********** Believe in Life ********** That we don't have to chan...
  • swami vivekananda best motivational Quotes
    Some Peoples are always have a negative thinking & bad mood their heart always filled with sadness & they are in depression mood.e...
  • Top 10 Words Of Encouragement and encouraging quotes
    Friends when you are depression mood everyone have some encouragement words that gives boost strength for You i feel these quotes helpful ...
  • Na Tanu Samjhawan Ki Song lyrics
    Na Tanu Samjhawan Ki Song Lyrics With English Translation Movie : Humpty Sharma ki Dulhaniya Song : Samjhawan Song Singer : Arijit ...
  • Detail Introduction about C#.Net
    Brief Introduction about C#.Net  Introduction C#.Net is the one of the Programming Language the .Net Framework also contains ano...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•