用c语言写比例导引律的代码
时间: 2024-05-24 18:13:09 浏览: 79
#include <stdio.h>
int main() {
float v1, v2, p;
printf("Enter the first value: ");
scanf("%f", &v1);
printf("Enter the second value: ");
scanf("%f", &v2);
p = v1 / v2;
printf("The proportionality constant is: %f", p);
return 0;
}
阅读全文