#include<stdio.h> #include<math.h> int main() { double a,b,c,S,area; scanf("%lf%lf%lf",&a,&b,&c); S=(a+b+c)/2; area=sqrt(S*(S-a)*(S-b)*(S-c)); printf("%0.3lf",area); return 0; }
#include<stdio.h> int main() { int a,b,c; int t; scanf("%d%d",&a,&b); if(b>a) { c=a; a=b; b=c; } t=a%b; printf("%d",t); return 0; }
#include<stdio.h> #define Yu(x,y) x=x%y int main() { int a, b; scanf("%d %d", &a, &b); printf("%d", Yu(a, b)); return 0; }
#include <stdio.h> #define GetRemainder(a ,b) {a % b} int main(void) { int data_1 = 0, data_2 = 0; scanf("%d%d",&data_1 ,&data_2); int c = GetRemainder(data_1 ,data_2); printf("%d\n" ,c); return 0; }
#include<stdio.h> #define y(a,b) a%b int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",y(a,b)); }
#include<stdio.h> #define NUM(a,b) a=a%b; int main() { int a,b; printf("plesse input tow numbers"); scanf("%d,%d",&a,&b); NUM(a,b); printf("%d",a); }
#include<stdio.h> #include<string.h> #define swap(a,b,c) {c=a%b;} int main() { int i,j,c; scanf("%d %d",&i,&j); swap(i,j,c); printf("%d",c); }
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:515 |
逆反的01串 (C++代码)(依旧推荐switch)浏览:933 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:469 |
【数组的距离】 (C语言代码)浏览:728 |
IP判断 (C语言代码)浏览:761 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:484 |
字符串输入输出函数 (C语言代码)浏览:2478 |
DNA (C语言代码)浏览:389 |
1054题解浏览:460 |
IP判断 (C语言代码)浏览:532 |