当前位置:网站首页>String reverse order
String reverse order
2022-07-03 14:15:00 【Study hard 867】
Enter a string , Reverse the order of the string , Output the string in reverse order .
Input format :
The input gives no more than 80 In characters 、 Non empty string ending with carriage return .
Output format :
Output the string in reverse order on one line .
sample input :
Hello World!
sample output :
!dlroW olleHCode :
#include <stdio.h>
int main(){
char a[80];
int i;
for(i=0;(a[i]=getchar())!='\n';i++);
i=i-1;
for(i;i>0;i--)printf("%c",a[i]);
printf("%c",a[0]);
}
边栏推荐
- JS first summary
- Understanding of closures
- [acnoi2022] guess numbers
- Redis:Redis的数据结构、key的操作命令
- Article content typesetting and code highlighting
- Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
- Back to top implementation
- Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
- 7-6 mixed type data format input
- jvm-对象生命周期
猜你喜欢

小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。

Generate directories from web content

Scroll detection of the navigation bar enables the navigation bar to slide and fix with no content

28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;

Exercise 10-6 recursively find Fabonacci sequence

Redis: operation command of string type data
[email"/>Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email

556. 下一个更大元素 III

The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log

玖逸云黑免费无加密版本源码
随机推荐
Exercise 9-3 plane vector addition
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
QT learning 24 layout manager (III)
fpga阻塞赋值和非阻塞赋值
Generate directories from web content
How to delete an attribute or method of an object
中国PETG市场预测及战略研究报告(2022版)
Article content typesetting and code highlighting
7-16 find the set of integers that meet the given conditions
Eight sorts
[Jilin University] information sharing of postgraduate entrance examination and re examination
Invalid Z-index problem
八大排序
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
中国锂电池电解液行业市场专项调研报告(2022版)
Exercise 8-2 calculate the sum and difference of two numbers
JS matrix zero
concat和concat_ws()区别及group_concat()和repeat()函数的使用
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?