0
Problems with Dev-c++
I've been using this compiler called Dev-c++ for couple of months and I was totally satisfied with everything,till I found out there are some problems such as NOT compiling the codes I write or not showing the correct outputs . Despite the fact that I write all the the codes correct ,it keeps showing some not related outputs .What do you recommende?
8 Respostas
+ 2
I recommend you to save a copy of the troubling code in SoloLearn, and attach the saved code links within your thread Description. Without a code for review the community can not help you any further.
Follow this guide to sharing your links, in case you didn't know đ
https://www.sololearn.com/post/75089/?ref=app
+ 1
// #include <conio.h> // not needed (compatibility issue)
You expected 3 numbers to compare, but the number of format specifier ("%d" -> 1 format specifier) doesn't match the number of variables given to receive the extracted value (a, b, c -> 3 variables). I added two format specifier, for <b> and <c> respectively.
scanf("%d %d %d", &a, &b, &c);
+ 1
Okay, share your code link so I can directly see what changes made.
0
Thank you so much for you efficient suggestion.
here is my code:
#include <stdio.h>
#include <conio.h>
int main() {
int a,b,c,max;
printf("Enter three numbers");
scanf("%d",&a,&b,&c);
if(a>b)
{
if(a>c) max=a;
else max=c;
}
else
{
if(b>c) max=b;
else max=c;
}
printf("%d",max)
}
0
It was mistyped
but this is the same thing with all the changes !
still keep showing wrong outputs .
0
Link is wrong! it took me to SoloLearn's page in Play Store.
- Save your code in SoloLearn.
- Tap on share button above code editor and pick copy to clipboard.
- If you're on browser then copy the URL in browser's address bar instead.
- Paste the link where you want it.
0
I'm pretty new here
having trouble with sending my links also:(
Wish I could upload a photo of my codes
thank you for your patients.