Sajo
Member
- Joined
- Jul 22, 2020
- Messages
- 17
- Programming Experience
- Beginner
Hello everybody! I am beginner in C# and i have problem with my code.
I don't see where is the problem but it doesn't want to run code. Please can you help me?
I don't see where is the problem but it doesn't want to run code. Please can you help me?
C#:
using System;
using System.Threading;
namespace Sajo_vježba
{
class Program
{
static void Main(string[] args)
{
int starost = 16;
string ime = " Safet ";
bool punoljetan = false;
Console.WriteLine(ime + " ima " + starost + " godina ");
Console.WriteLine(punoljetan);
Console.WriteLine(" Klikni enter za nastavak programa ");
Console.ReadLine();
//nešto novo
starost = 18;
punoljetan = true;
Console.WriteLine(" Dve godine kasnije, " ime + " ima " + starost "godina");
Console.WriteLine(" punoljetan: " + punoljetan);
Console.ReadLine();
}
}
}
Last edited by a moderator: