Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
int wtree( int storey )
{
return 1 + ( (4 + 2 * ( storey - 1 )) / 2 ) * storey ;
}
int main( int argc, char **argv )
{
{
getMsgPrice(a, b)
a - строка букв для пойска
b - общее сообщение
}
program chitcom;
function getMsgPrice( a, b: string ): integer;
var
count, i, j: integer;
begin
@m0hmad
m0hmad / chitcom.c
Last active February 28, 2018 19:03
/* chitcom:
* getMsgPrice(int *a, int *b)
* a - price
* b - messeg
*/
#include <stdio.h>
#include <string.h>
int getMsgPrice( char *a, char *b )
{