Changes to be committed:

renamed:    proglabs/lab7-8/3 -> proglabs/lab7-8/10
	new file:   proglabs/lab7-8/18
	renamed:    proglabs/lab7-8/6 -> proglabs/tmp.out
	new file:   proglabs/zd.c
This commit is contained in:
2025-11-13 00:18:35 +07:00
parent 2ed5553b96
commit e266a25b45
4 changed files with 13 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#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);
}