以下是一个计算月经周期和排卵期的C语言代码示例:
#include <stdio.h>
int main() {
int cycleLength, periodLength, ovulationDay;
printf("请输入您的月经周期长度(天):");
scanf("%d", &cycleLength);
printf("请输入您的月经持续天数(天):");
scanf("%d", &periodLength);
ovulationDay = (cycleLength - periodLength) / 2 + perio