0
using System;
namespace error2
{
class Program
{
public static void qube(ref int first, ref int middle, ref int last)
{
int temp = 0;
temp = first;
first = last;
last = temp;
}
static void Main(string[] args)
{
int first=23;int middle = 45;int last = 67;
Console.Write("\ncurrent value of first middle last is {0} {1} {2}\t",first,middle,last);
Program.qube(ref first,ref middle,ref last);
Console.WriteLine("\nNow the first middle last is {0} {1} {2}\t", first,middle,last);
Console.ReadLine();
}
}
}
0
I got you. Let me look through the textbook one more time and try some things out.
0
But you don't even show an attempt to solve the issue. At least try to write code which even though it is breaking and try to resolve errors. Ready made answers from here will solve the issue but won't help you learning. For this specific problem the logic is you need to swap the values of firstInt and lastInt. Try to implement this logic and come back here if you are facing issue in the code of that.
0
No. I more need help understanding how to do them. I am having trouble understanding the concepts currently.
0
Are you getting your homework done by posting questions here?