Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Why do I get a Compilation error?

$
0
0

i have tested this code on my computer while using Turbo c++ . but this is not compiling in c++ 4.0.0-8.

#include<iostream.h>
#include<conio.h>
void main()
{
int x;
float y;
cin>>x;
cin>>y;
if(x%5==0){
y=(y-x)-0.50;
}
cout<<y;
getch();
}

Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>