C语言:怎样遍历1-N中只含0和1的数字

日期:2022-04-06 12:55:22 人气:1

C语言:怎样遍历1-N中只含0和1的数字

//第一种:最简单最暴力也最蠢的办法
#include<stdio.h>
int text(int i)
{
int j;
j = i;
while(j>0)
{
if(j%10 > 1)
    A+
热门评论