#include <stdio.h>
#include <string.h>
char strs[32][16];
void fun(int);
int main(void)
{
int len;#include <stdio.h>
void selectionSort(int[], int);
int main(void)
{
int arr[64], len;
scanf("%d", &len);
for (int i = 0; i < len; i++)
{#include <stdio.h>
#include <math.h>
double fun(double, int);
int main(void)
{
double x;
int m;
printf("请输入一个数以及其保留几位小数:\n");
scanf("%lf %d", &x, &m);
printf("%lf保留%d为小数为%lf\n", x, m, fun(double x, int m));#include <stdio.h>
#include <math.h>
float fun(float,int);
int main(void)
{
float y,j;
int w;
scanf("%f %d",&y,&w);
j = fun(y,w);
printf("%f",j);git config --global http.proxy
git config --global https.proxy/*(1) 编写函数float fun(float x, int m)
它的功能是:将浮点数x保留m位小数(m不大于6),第m+1位四舍五入。
例如,输入123.456,保留2位小数应输出123.46(或123.459999)。
编写主函数,输入输出在主函数中进行。*/
#include <stdio.h>
float fun(double, int);
int main(void)#include <stdio.h>
#include <math.h>
int fun(int);
int main(void)
{
int s;
scanf("%d", &s);
printf("%d\n", fun(s));#include <stdio.h>
#include <stdbool.h>
char board[12][25] = {" ",
" ",
" ",
" +-+-+-+-+-+-+ ",
" +-+-+-+-+-+-+ ",
" +-+-+-+-+-+-+ ",
" +-+-+-+-+-+-+ ",<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>poll-front</title>
</head>
<body><!DOCTYPE html>
<html>
<head lang="en">
<meta charset="GBK">
<title></title>
<style>
body {
margin: 0;
padding: 0;
background-color: black;