当前位置:网站首页>[C Primer Plus Chapter II after class programming questions]
[C Primer Plus Chapter II after class programming questions]
2022-06-28 23:41:00 【The imperial dining room always tries】
2.1
#include <stdio.h>
int main (void)
{
printf("Gustav Mahler\n");
printf("Gustav\n");
printf("Mahler\n");
printf("Gustav Mahler");
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.2
#include <stdio.h>
int main (void)
{
printf("Diago\n");
printf("China");
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.3
#include <stdio.h>
int main (void)
{
int year;
year=30;
printf("%d %d",year,year*365);
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.4
#include <stdio.h>
void jolly (void);
void deny (void);
int main (void)
{
jolly();
deny();
return 0;
}
void jolly (void)
{
printf("For he's a jolly good fellow!\n");
printf("For he's a jolly good fellow!\n");
printf("For he's a jolly good fellow!\n");
}
void deny (void)
{
printf("Which nobody can deny!");
}
//
// Created by Chen on 2022/6/26.
//
2.5
#include <stdio.h>
void br (void);
void ic (void);
int main (void)
{
br();
ic();
printf("India,China\n");
printf("Brazil,Russia");
return 0;
}
void br (void)
{
printf("Brazil,Russia,");
}
void ic (void)
{
printf("India,China\n");
}
//
// Created by Chen on 2022/6/26.
//
2.6
#include <stdio.h>
int main (void)
{
int toes;
toes=10;
printf("%d %d %d",toes,2*toes,toes*toes*toes);
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.7
#include <stdio.h>
void smile (void);
int main (void)
{
smile();
smile();
smile();
printf("\n");
smile();
smile();
printf("\n");
smile();
return 0;
}
void smile (void)
{
printf("Smile!");
}
//
// Created by Chen on 2022/6/26.
//
2.8
#include <stdio.h>
void one_three (void);
void two (void);
int main (void)
{
printf("starting now:\n");
one_three();
two();
printf("three\n");
printf("done!");
return 0;
}
void one_three (void)
{
printf("one\n");
}
void two (void)
{
printf("two\n");
}
//
// Created by Chen on 2022/6/26.
//
边栏推荐
- Is it safe and reliable to open a securities account in Yixue school?
- Advice to friends
- 图片64base转码与解码
- lock4j--分布式锁中间件--使用/实例
- The secondary market is full of bad news. How should the market go next? One article will show you the general trend
- [matlab] function definition and use
- Stm32f407 ------ serial (serial port) communication
- Puma joins hands with 10ktf shop to launch its Web3 cooperation project with the largest scale so far
- The second session of question swiping and clock out activity -- solving the switching problem with recursion as the background (2)
- Finally, someone explained the cloud native architecture
猜你喜欢

Yyds dry goods inventory building knowledge map from scratch with neo4j (I)

Stm32f407----- capacitive touch button
![[conception de la machine d'état] Moore, Mealy State Machine, Three - stage, Two - stage, one - stage State Machine Writing Specification](/img/48/e29f34aff7cc437bfb574591d54e3d.png)
[conception de la machine d'état] Moore, Mealy State Machine, Three - stage, Two - stage, one - stage State Machine Writing Specification
![[word Tutorial Series Part 1] how to remove arrows in word tables](/img/c7/dc57002b0e9d433c4dfac15d53713d.png)
[word Tutorial Series Part 1] how to remove arrows in word tables

Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6

移动端异构运算技术 - GPU OpenCL 编程(基础篇)

stm32F407-------寄存器地址名称映射分析

IDC: Alibaba cloud ranks first in the market share of China's data governance platform in 2021

stm32F407-------GPIO输入实验

Chapter III processor scheduling exercise
随机推荐
Association line exploration, how to connect the two nodes of the flow chart
stm32F407-------串行(串口)通信
stm32F407-------通用定时器
【SSM】报错 Access denied for user ‘WYF‘@‘localhost‘ (using password: YES) 数据的用户名变成了电脑的用户名
[数学建模]Matlab非线性规划之fmincon()函数
Machine learning 6-decision tree
PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters
机器学习4-降维技术
股票开户在网上开通安全吗?
Windows10 phpstudy installing redis extension
scrapy保存数据到excel:利用openpyxl创建多张表,设置Excel行数限制
Flutter obtains the coordinate size of any element in the interface through globalkey
stm32F407-------电容触摸按键
Class extension and optional type extension of dart
"Five considerations" for safe use of the Internet
Rongyun communication solution solves the pain points of enterprise communication
Three communication skills in software testing
Behaviortree in ros2
Stm32f407 ------- RTC real time clock
pymysql. Error get error code and specific error information