C Primer 习题

Posted civitate

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C Primer 习题相关的知识,希望对你有一定的参考价值。

2.4

#include<stdio.h>
int main(void)
{
    int s;
    s = 52;
    printf("There are %d weeks in a year.",s);
    return 0;
}

 

2.5

a.Baa Baa Blacke Sheep.Have you any wool?

 

b.Begone!nO creature of lard!

 

c.What?

No/nfish?

 

d.2+2=4

 

2.6 都是

 

2.7

int n,m;

n=3020;

m=250;

printf("There were %d words and %d 350 lines",n,m);

 

2.8

以上是关于C Primer 习题的主要内容,如果未能解决你的问题,请参考以下文章