当前位置:网站首页>[C Prime plus chapitre II Questions de programmation après la Classe]
[C Prime plus chapitre II Questions de programmation après la Classe]
2022-06-28 23:41:00 【Le restaurant impérial essaie toujours.】
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.
//
边栏推荐
- 第四章 存储器管理练习
- stm32F407-------跑马灯、蜂鸣器
- Machine learning 4-dimension reduction technology
- stm32F407-------LCD
- Use conditional breakpoints in vscode (based on GDB)
- 自动化测试的生命周期是什么?
- How to make two objects or arrays equal
- Stm32f407----- register address name mapping analysis
- stm32F407-------寄存器地址名称映射分析
- IDC: Alibaba cloud ranks first in the market share of China's data governance platform in 2021
猜你喜欢

ERROR 1067 (42000): Invalid default value for ‘end_time‘ Mysql

【状态机设计】Moore、Mealy状态机、三段式、二段式、一段式状态机书写规范

【软件分析】软件分析、设计与建模迭代式详解

ERROR 1067 (42000): Invalid default value for ‘end_ time‘ Mysql

第二章 经典同步练习作业

stm32F407-------通用定时器

mysql-5.7.30-winx64免安装版下载安装教程

Rongyun communication solution solves the pain points of enterprise communication

stm32F407-------LCD

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
随机推荐
Insomnia last night
stm32F407-------IO引脚复用映射
scrapy保存数据到excel:利用openpyxl创建多张表,设置Excel行数限制
That's how he did it!
Is it safe and reliable to open a securities account in Yixue school?
Yyds dry inventory solution sword finger offer: maximum sum of continuous subarrays (II)
Would like to ask, how to open a stock account? Is it safe to open an account online?
第三章 处理机调度练习
Windows10 phpstudy installing redis extension
stm32F407-------跑马灯、蜂鸣器
Finally, someone explained the cloud native architecture
10. Standard i/o redirection and pipeline
Mysql-5.7.30-winx64 installation free download and installation tutorial
PHP 使用endroid/qrcode 二维码生成, GD库生成分享海报
Advice to friends
设计电商秒杀系统
[matlab]函数定义与使用
第二章 经典同步练习作业
stm32F407-------RTC实时时钟
Save data in Excel: use openpyxl to create multiple tables and set excel row limit