#include <stdio.h>
#include <string.h>
int main()
{
int num_key=666;
do
{
puts("\n\n\t*********************************************");
puts("\t* *");
puts("\t* Calculador de temperatura *");
puts("\t* *");
puts("\t* *");
puts("\t* *");
puts("\t* DIGITE SUA SENHA *");
puts("\t* *");
puts("\t* *");
puts("\t* *");
puts("\t* DIGITE 0 PARA SAIR *");
puts("\t*********************************************");
scanf("%i",num_key);
}while(num_key!=123);
}
I have a problem in this while loop, I can not find the problem, it all comes up that I run it from the error and it closes. I checked and re-written the logic 2 times.