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
დავალება 1 | |
დაწერეთ პროგრამა, რომელიც დაბეჭდავს 50 ცალ რენდომ რიცხვს. | |
რენდომ რიცხვი უნდა იწყებოდეს 10 იდან 200 ამდე. | |
შენიშვნა - არ გამოიყენოთ Google ი და bitcamp ის დოკუმენტაცია, დაწერეთ დამოუკიდებლად. | |
დავალება 2 | |
დაწერეთ პროგრამა, რომელიც ფოტო-სურათს ატრიალებს user ის ბრძანების მიხედვით. |
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
დაწერეთ პროგრამა, რომელიც დახატავს პირამიდას. | |
მაგალითად ესეთს : | |
# | |
## | |
#### | |
###### |
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
დაწერეთ პროგრამა, რომელიც | |
მოხმარებელს ამოარჩევინებს და შეაქმნევინებს ისეთ ფიგურას, რომელიც თვითონ უნდა | |
პროგრამა უნდა მუშაობდეს შემდეგნაირად : | |
პირველი ნაბიჯი : | |
პროგრამა ეკითხება მომხმარებელს თუ რომელი ფუგრა უნდა, რომ შეიქმნას |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ParallelFactorial | |
{ | |
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
public static void ChangeValueInList<T>(this IList<T> collection, int index, T value) | |
{ | |
var valueToChange = collection.FirstOrDefault(o => collection.IndexOf(o) == index); | |
if(valueToChange != null) | |
{ | |
valueToChange = value; | |
} | |
} |
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
public static Expression<Func<T, bool>> StrToFunc<T>(string propName, string opr, string value, Expression<Func<T, bool>> expr = null) | |
{ | |
Expression<Func<T, bool>> func = null; | |
try | |
{ | |
var type = typeof(T); | |
var prop = type.GetProperty(propName); | |
ParameterExpression tpe = Expression.Parameter(typeof(T)); | |
Expression left = Expression.Property(tpe, prop); | |
Expression right = Expression.Convert(ToExprConstant(prop, value), prop.PropertyType); |
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
### Keybase proof | |
I hereby claim: | |
* I am tornikegomareli on github. | |
* I am tornikegomareli (https://keybase.io/tornikegomareli) on keybase. | |
* I have a public key ASCAm6KbMtWQXYkZScADkd4zW-uQwKAO-S-K9yJ6EtWdbwo | |
To claim this, I am signing this object: |
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
var Singleton = (function () { | |
var instance; | |
function createInstance() { | |
var object = new Object("I am the instance"); | |
return object; | |
} | |
return { | |
getInstance: function () { |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int counter = 0; | |
int mtvleli = 0; |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
double GelCurrency = 2.61; | |
double EuroCurrency = 0.86; |