-2
#include<stdio.h>
main()
{
char R[1];
int S, SQ, Nc, Vt;
Nc=1000;
Vt=10000;
SQ=S/10;
while(R!="N" || Nc>0)
{
printf("limite:%d",Vt);
printf("\nDigite quanto deseja sacar:");
scanf("%d",&S);
if ((S <0) || (S > Vt) || (S % 10 != 0))
printf("Valor invalido");
printf("Deseja realizar outro saque? [S/N]");
scanf("%s",&R);
if ((S%10=0) && (S<Vt))
printf("%d nota(s) de 10.", SQ);
printf("Deseja realizar outro saque? [S/N]");
scanf("%s",&R);
Vt=Vt-S;
Nc=Nc-(S/10);
if (Nc = 0)
printf("Sem notas");
}
}
Isn’t one missing
=
in this comparison?– Andre
Hello @Pedro Sabença Welcome to Sopt, before posting your questions check out https://answall.com/tour and https://answall.com/help/minimal-reproducible-example
– Davi Wesley
correct the indentation of your code, to facilitate the understanding of other people
– zentrunix