Answer the question
In order to leave comments, you need to log in
Translate code from C++ to pascal?
Hello everyone, I have a small piece of C++ code
#include<iostream>
using namespace std;
int main(){
int t, zedt;
while(true){
cin>>t;
if(t<=15)break;
}
zedt=15-t;
cout<<((double)t/15*100)<<"%\n"<<((double)zedt/15*100)<<"%\n";
return 0;
}
program massiv;
var t,zedt,t1,t2: real;
begin
read(t);
while(true) {
if(t<=15)break;
}do
zedt:=15-t;
t1:=t/15*100;
t2:=zedt/15*100;
writeln(t1, t2);
end.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question