首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include <stdio.h>
void setence();
int main() 
{
setence();
setence();
setence();
printf("Which no body can deny\n");

return 0;
}
void setence()
......................
阅读全部 | viceboy 贴于 2022年2月20日 15:57     hide bbsi
#include <stdio.h>
int main() 
{
    int n,n2,n3;
    /*There are some faults in this programme*/
    
    n=5;
    n2=n*n;
    n3=n*n*n;

printf("n = %d\nn squared = %d\nn cubed = %d\n",n,n2,n3);
return 0;
......................
阅读全部 | viceboy 贴于 2022年2月19日 17:16     hide bbsi
#include <stdio.h>
int main() 
{
    int n,n2,n3;
    /*There is some faults in this programme*/
    
    n=5;
    n2=n*n;
    n3=n*n*n;

printf("n = %d\nn squared = %d\nn cubed = %d\n",n,n2,n3);
return 0;
......................
阅读全部 | viceboy 贴于 2022年2月19日 17:15     hide bbsi
#include <stdio.h>
void answer(void)
{
    printf("Dad,I am watching tv,what's up?\n");   
};

int main() 
{
printf("Rick,what are you doing?\n");

answer();

......................
阅读全部 | viceboy 贴于 2022年2月19日 17:01     hide bbsi
#include <stdio.h>

int main(void) 
{
int feet,fathoms;

fathoms=2;
feet=6*fathoms;
printf("There are %d feet in %d fathoms!\n",feet,fathoms);
printf("Yes, I said %d feet!\n",6*fathoms);
return 0;
}
阅读全部 | viceboy 贴于 2022年2月19日 16:30     hide bbsi
#include <stdio.h>
main()
{
    Printf("hello world.\n");
}
阅读全部 | A123FFF0731 贴于 2022年2月9日 14:11     hide bbsi
#include <stdio.h>

int main() {
printf("我在编程中国学C语言\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}

printf("\n\n绘制一个心形图案:");
......................
阅读全部 | bvcxz 贴于 2022年1月29日 10:40     hide bbsi
#include <stdio.h>
#include <iostream>
#include <math.h>

float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}

float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -= 0.001f)
if (f(x, y, z) <= 0.0f) {
......................
阅读全部 | lucase 贴于 2022年1月25日 20:22     hide bbsi
#include <stdio.h>

#define PRICE 30;

int main() {
    float num,total;
    
    scanf("%f", &num);

    total=num*PRICE;
    
    printf("total = %f \n", total);
......................
阅读全部 | 蔡小菜 贴于 2022年1月25日 18:44     hide bbsi
#include <stdio.h>

#define PRICE 30;

int main() {
    float num,total;
    
    num=10.5;
    total=num*PRICE;
    
    printf("total = %f \n", total);
}
阅读全部 | 蔡小菜 贴于 2022年1月25日 18:38     hide bbsi
上一页 24 25 26 27 28 29 30 31 32 33 下一页