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:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user