lmao
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <wchar.h>
|
||||
#include <locale.h>
|
||||
|
||||
void buffinput(int *inbuff, int *buff){
|
||||
setlocale(LC_ALL, "");
|
||||
wint_t ch;
|
||||
*inbuff = 0;
|
||||
|
||||
while((ch = getwchar()) != L'\n' && *inbuff < 5){
|
||||
buff[*inbuff] = (int)ch;
|
||||
(*inbuff)++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main() {
|
||||
int buff[5];
|
||||
int inbuff = 0;
|
||||
buffinput(&inbuff, buff);
|
||||
for(int i = 0; i < inbuff; i++)
|
||||
printf("%lc - %d ", buff[i], buff[i]);
|
||||
printf("стопор");
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int id,z1,z2,z3,count_z;
|
||||
|
||||
id = 18 % 10 +1;
|
||||
printf("Коллво заданий: ");
|
||||
scanf(" %d",&count_z);
|
||||
z1 = id+(count_z%id);
|
||||
z2 = ((id*3)%count_z)+1;
|
||||
z3 = (((id*3)+id)%count_z)+1;
|
||||
printf("%d %d %d",z1,z2,z3);
|
||||
}
|
||||
Reference in New Issue
Block a user