首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
int main()
{
int r,t,p,m,n;
scanf("%d%d",&n,&m);
if(n<m)
{
t=n;n=m;m=t;
}
p=m*n;
while(m!=0)
{
......................
阅读全部 | 天衣boy 贴于 2016年12月18日 13:19     hide bbsi
#include<stdio.h>
int p(int n)
{
int i;
if(n<2)
return 0;
else for(i=2;i<=n-1;++i)
if(n%i==0)
return 0;
return 1;
}
int b(int n)
......................
阅读全部 | 天衣boy 贴于 2016年12月16日 21:03     hide bbsi
#include<stdio.h>
int main()
{
char s[100];
int i,d,j=0;
gets(s);
for(i=0;s[i];++i)
{
if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z')
d=1;
else 
d=0;
......................
阅读全部 | 天衣boy 贴于 2016年12月16日 20:27     hide bbsi
#include<stdio.h>
int main()
{
char ch;
int a=0,b=0,c=0,d=0,e=0;
printf("Input a string:");
while((ch=getchar())!='\n')
{
if(ch>='a'&&ch<='z')
a++;
else if(ch>='A'&&ch<='Z')
b++;
......................
阅读全部 | 天衣boy 贴于 2016年12月15日 21:54     hide bbsi
<!DOCTYPE HTML>

<html xmlns="http://www.w3.org/1999/xhtml" class="g_htmlManage">

<head>

<title>门户网站样板</title>

<meta id='_TOKEN' value='43f6cb7ba56fd881c790bfc2f6036623'/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Cache-Control" content="no-transform" />
......................
阅读全部 | z75748 贴于 2016年12月15日 21:40     hide bbsi
813564fb-dafd-4ccf-b860-d01200f7c9b5
阅读全部 | z75748 贴于 2016年12月15日 21:39     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#define N 100

int main()
{
    int n;
    while(~scanf("%d",&n))
    {
        int i;
        char name[N];
        char id[N];
......................
阅读全部 | SWCHY 贴于 2016年12月15日 19:12     hide bbsi
Fibonacci 数
#include "stdio.h"
#include "math.h"
int main(void)
{
   int i, m, n;
   int repeat, ri;
   long f;
   long fib(int n);

   scanf("%d",&repeat);
   for(ri = 1; ri <= repeat; ri++){
......................
阅读全部 | 来来来 贴于 2016年12月13日 11:18     hide bbsi
swer serhydfcbsewwyg3 gtweygzv wge4srvbx
阅读全部 | q710205785 贴于 2016年12月13日 10:06     hide bbsi
sEEDG Weyt wyw ryu
阅读全部 | q710205785 贴于 2016年12月13日 10:06     hide bbsi
上一页 160 161 162 163 164 165 166 167 168 169 下一页