This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sportgroups.id as sportgroupId, sports.name as sport, sportgroups.location as location | |
from sports join sportgroups | |
on sports.id in ( | |
select sport_id | |
from sportgroups | |
where sportgroups.location like 'Sofia' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sportgroups.id as sportgroupId, sports.name as sport, sportgroups.location as location | |
from sportgroups join sports | |
on sportgroups.sport_id = sports.id | |
where sportgroups.location like '%Sofia%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sportgroups.id as sportgroupId, sports.name as sport, sportgroups.location as location | |
from sports join sportgroups | |
on sports.id in ( | |
select sport_id | |
from sportgroups | |
where sportgroups.location like '%Sofia%' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Rectangles | |
{ | |
/* | |
Write an expression that calculates rectangle’s area and perimeter by given width and height. The width and height should be read from the console. | |
*/ | |
using System; | |
using System.Globalization; | |
using System.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Demo | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Demo | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Write a program that, for a given two integer numbers N and x, calculates the sum S = 1 + 1!/x + 2!/x2 + … + N!/xN. */ | |
using System; | |
class Calculate | |
{ | |
static void Main() | |
{ | |
int n = int.Parse(Console.ReadLine()); | |
double x = double.Parse(Console.ReadLine()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class TextToNumber | |
{ | |
static void Main() | |
{ | |
long result = 0; | |
int module = int.Parse(Console.ReadLine()); | |
string text = Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Program | |
{ | |
private const char SpaceSign = ' '; | |
private const char DotSign = '.'; | |
private const char XSign = 'X'; | |
private const char SlashSign = '/'; | |
private const char BackSlashSign = '\\'; | |
private const char HashTagSign = '#'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy Code Snippet Hereusing System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace case_3 | |
{ | |
class Program | |
{ |
OlderNewer