this code will enter numbers and print sum them between 1 to 10 // the problem is : it sum all the nummbers except the first number i entered
example : if I enter 5 3 2 1 will print sum(3+2+1) = 6. will not sum 5 with numbers
int a = int.Parse(Console.ReadLine());
int sum = 0;
while (a < 10 &&...
this code to multiplication numbers fro 6 to 1 like this : 6*5*4*3*2*1 = 720
the problem is the result is : 0
int sum = 0;
int n = 6;
for (int x = n; x > 0; x--)
{
sum *= x;
} textBox2.Text =...
This code to sum numbers, but it is only show the numbers. mean instead of sum : 1 2 3 4 = 10 . its only show the numbers. how to sum the numbers?
for (int x = 0; x < 5; x++)
{
int sum = 0;
Console.WriteLine(sum += x)...
I tried this line to clear all the data in column 'd' of worksheet in excel after export the data from DGV. Is there a professional way instead of this way ?because I limited the cells in columns by 5000
Worksheet.get_range("d1","d5000").Cells.Clear();
I am trying to creat code for export data from DGV to Excel . And i faced a problem in creating worksheet.
Microsoft.Office.Interop.Excel._Application app = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel._Workbook workbook = app.Workbooks.Add(Type.Missing)...
I was using vb and i try to convert my code to C#. I tried this codes
VB
DataGridView1.CurrentRow.Cells(3).Value
C#
dataGridView1.CurrentRow.Cells...
did not complete the code like VB with index number with cell.
How can I do this
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.