1 solutions
-
0
C :
#include<stdio.h> int main() { int a[7],b; for(b=1;b<=3;b++) { scanf("%d",&a[b]); } a[4]=a[1];a[5]=a[2]; a[1]=a[3];a[2]=a[4];a[3]=a[5]; printf("%d\n%d\n%d",a[1],a[2],a[3]); }C++ :
#include<iostream> using namespace std; int main() { int a,b,c,s; cin>>a>>b>>c; cout<<c<<endl; cout<<a<<endl; cout<<b<<endl; return 0; }Pascal :
program xx; var t,a,b,c:integer; begin readln(a); readln(b); readln(c); t:=a; a:=c; c:=b; b:=t; writeln(a); writeln(b); writeln(c) end.
- 1
Information
- ID
- 19505
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By