当前位置:网站首页>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]);
}
边栏推荐
猜你喜欢

JVM class loading

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

Leetcode(4)——寻找两个正序数组的中位数

Page generation QR code

JS matrix zero

必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿

Current situation, analysis and prediction of information and innovation industry

JS Part III

编程语言:类型系统的本质
[email protected] (FE) | glycyrrhetinic acid modified metal organ"/>Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
随机推荐
Sendmail无法发送邮件及发送过慢解决
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
Example analysis of QT learning 18 login dialog box
jvm-运行时数据区
Similarities and differences of sessionstorage, localstorage and cookies
Invalid Z-index problem
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
Understanding of closures
愉悦资本新双币基金近40亿元完成首次关账
Exercise 8-7 string sorting
How to delete an attribute or method of an object
JS Part 2
Why don't I have a rookie medal
Programmable logic device software testing
7-4 BCD decryption (10 points)
超简单手机地图开发
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
QT learning 24 layout manager (III)
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email