当前位置:网站首页>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 olleH
Code :
#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]);
}
边栏推荐
- Invalid Z-index problem
- 中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿
- How to bold text in AI
- 剑指 Offer 28. 对称的二叉树
- QT learning 19 standard dialog box in QT (top)
- 7-8 overspeed judgment
- JS input number and standard digit number are compared. The problem of adding 0 to 0
- js . Find the first palindrome string in the array
- Exercise 8-8 moving letters
- PCB中常用快捷键
猜你喜欢
Jiuyi cloud black free encryption free version source code
Interface for querying IP home
[email"/>
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Eight sorts
牛客网:过河卒
Vite project commissioning
Redis: commandes d'action pour les données de type chaîne
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
JVM object lifecycle
随机推荐
Exercise 7-6 count capital consonants
Eight sorts
7-15 calculation of PI
7-10 calculate salary
7-2 and then what time (15 minutes)
npm install卡住与node-npy的各种奇怪报错
Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
Redis:字符串类型数据的操作命令
MongoDB索引
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
Redis: operation command of string type data
Fabric. JS document
Duet date picker (time plug-in that can manually enter the date)
JS first summary
7-14 sum integer segments (C language)
7-9 find a small ball with a balance
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
Webpage connection database ~ simple implementation of addition, deletion, modification and query complete code
QT learning 21 standard dialog box in QT (Part 2)