当前位置:网站首页>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]);
}
边栏推荐
- Solve the problem of dormitory router campus network sharing login
- 7-7 12-24 hour system
- 别再问自己适不适合做软件测试了
- Too many files with unapproved license
- 战略、战术(和 OKR)
- Exercise 6-2 using functions to sum special A-string sequences
- QT learning 19 standard dialog box in QT (top)
- Common mixins
- Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
- 7-15 calculation of PI
猜你喜欢

Interface for querying IP home

Mysql多表查询 #子查询

Redis:Redis的数据结构、key的操作命令

Leetcode (4) -- find the median of two positively ordered arrays

Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)

可编程逻辑器件软件测试

Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
[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

7-10 calculate salary

Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
随机推荐
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
八大排序
超简单手机地图开发
玖逸云黑免费无加密版本源码
Mysql多表查询 #子查询
Too many files with unapproved license
JS matrix zero
Leetcode (4) -- find the median of two positively ordered arrays
[acnoi2022] guess numbers
Solve the problem of dormitory router campus network sharing login
关于回溯问题中的排列问题的思考(LeetCode46题与47题)
Strategy, tactics (and OKR)
Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
Redis: redis data structure and key operation commands
QT learning 24 layout manager (III)
Analysis of the characteristics of page owner
7-2 and then what time (15 minutes)
Exercise 8-7 string sorting
Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
JS get DPI, PX to cm, cm to PX