krfx
krfx
Explore posts from servers
CC#
Created by krfx on 11/6/2023 in #help
✅ whats wrong?
using System; public class Program { public static void Main(int[] args) { Console.WriteLine("> Converteste minute in secunde:"); int input = Console.ReadLine(); Console.WriteLine(input * 2); } } it says it cant convert string to int but why
5 replies
CC#
Created by krfx on 10/6/2023 in #help
How can i do this:?
Hi, this is my code
using System;
using System.Text;
using System.Threading.Tasks;

namespace Workspace
{
class Program
{
static void Main(string[] args)
{
int result;
Console.WriteLine("Enter the numbers:");
int input1 = Convert.ToInt32(Console.ReadLine());
int input2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Result: {0}", input1 + input2);

}
}

}
using System;
using System.Text;
using System.Threading.Tasks;

namespace Workspace
{
class Program
{
static void Main(string[] args)
{
int result;
Console.WriteLine("Enter the numbers:");
int input1 = Convert.ToInt32(Console.ReadLine());
int input2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Result: {0}", input1 + input2);

}
}

}
23 replies