C Primer Review Questions

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 is

 

2.7

int n,m;

n=3020;

m=250;

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

 

2.8

Guess you like

Origin www.cnblogs.com/Civitate/p/11621646.html