Ciao a tutti,
Scusate per quella che sarà una domanda stupida ma io non sono un programmatore, ho scritto questo piccolo codice in Devc++
#include<iostream>
using namespace std;
int main()
{
int a =10;
int b =20;
int c =3;
int risultato = a+b/c;
cout << risultato<<endl;
system("PAUSE");
l'output sullo schermo è 16.
Vorrei sapere dove sbaglio,
grazie a tutti.
Ciao Luc.
Scusate per quella che sarà una domanda stupida ma io non sono un programmatore, ho scritto questo piccolo codice in Devc++
#include<iostream>
using namespace std;
int main()
{
int a =10;
int b =20;
int c =3;
int risultato = a+b/c;
cout << risultato<<endl;
system("PAUSE");
l'output sullo schermo è 16.
Vorrei sapere dove sbaglio,
grazie a tutti.
Ciao Luc.
