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 <stdio.h> | |
#include <stdlib.h> | |
int fin(int); | |
void main() | |
{ | |
int n, i, temp; | |
scanf("%d", &n); | |
for (i = 0; (temp = fin(i)) <n; i++) | |
printf("%4d\n", temp); |
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.Net; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace test | |
{ | |
static 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
//interfaces and abstract classes used in our real commands | |
//firstly basic class for command w/o any additional data, pure payload only | |
export abstract class Command<TPayload> { | |
payload: TPayload; | |
public constructor(payload: TPayload) { | |
this.payload = payload; | |
} |