#include<stdio.h>
#include<conio.h>
void main(void)
{
int a1,a2,a3,a4,a5;
clrscr();
scanf("%d%d%d%d%d",&a1,&a2,&a3,&a4,&a5);
printf("%d%d%d%d%d",a5,a4,a3,a2,a1);
getch();
}
johnloiebert
0
Newbie Poster
Recommended Answers
Jump to PostThis reeks of a homework assignment, so I'm not going to provide any code at this time.
FYI, this is the C++ forum, there is a separate C forum.
Also, please use code tags when posting code in the future. They make the code in your post easier to read.
…
All 4 Replies
Fbody
682
Posting Maven
Featured Poster
Bitllorent
0
Newbie Poster
johnloiebert
0
Newbie Poster
vinitmittal2008
37
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.