C语言题啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
发布网友
发布时间:2024-10-12 01:01
我来回答
共4个回答
热心网友
时间:2024-12-06 10:16
#include<stdio.h>
#include<math.h>
main()
{
double a,b,c;
int a1,a2,x,x2;
b=35.425;
c=52.954;
a=b*c;
a1=(int)(a);
x=(int)(c);
x2=(int)(b);
a2=x%x2;
printf("a1=%d, a2=%d",a1,a2);
print("\n");
}
热心网友
时间:2024-12-06 10:17
#include <stdio.h>
//---------------------------------------------------------------------------
int _tmain(int argc, _TCHAR* argv[])
{
float b=35.425;
float c=52.954;
int a1,a2;
a1=(int)(b*c);
a2=(int)c%(int) b ;
printf("a1=%d,a2=%d",a1,a2);
getchar();
return 0;
}
热心网友
时间:2024-12-06 10:17
#include <stdio.h>
int main()
{
float b = 35.425, c = 52.954;
int a1 = (int)b*c;
int b1 = (int)b;
int c1 = (int)c;
int a2 = c1%b1
return 0;
}
热心网友
时间:2024-12-06 10:18
#include"stdio.h"
void main()
{
double b=35.425;double c=52.954;
int a1;double a2;
a1=(int)(b*c);
a2=c-b*(int)(c/b);
printf("a1:%d\na2:%lf\n",a1,a2);
}