source.cpp: In function βint main()β:
source.cpp:4:39: error: a function-definition is not allowed here before β{β token
4 | void convert(int ll,int ul,int step) {
| ^
and my code is
#include<iostream>
using namespace std;
int main() {
void convert(int ll,int ul,int step) {
for (int i =ll; i<=ul; i=i+step){
int c = (int)(5.0/9)(i-32);
cout<<i<<"\t"<<c<<endl;
}
}
return 0;
}