1 solutions
-
0
C++ :
#include<bits/stdc++.h> using namespace std; int main() { cout<<" 8.5"<<endl; cout<<"+ 2.5"<<endl; cout<<"------"<<endl; cout<<" 11.0"<<endl; return 0; }Pascal :
Var x1,x2,s:real; Begin X1:=8.5; X2:=2.5; S:=x1+x2; writeln(x1:6:1); writeln('+',x2:5:1); writeln('------'); writeln(s:6:1); end.
- 1
Information
- ID
- 16845
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By