The example given is with the var type 'char' and my code is with the 'int' type. I'm trying adjust it but i'm not doing it right. Can somebody get me an example with a code more like my own?
Type: Posts; User: caspeer
The example given is with the var type 'char' and my code is with the 'int' type. I'm trying adjust it but i'm not doing it right. Can somebody get me an example with a code more like my own?
#include <stdio.h>
#include<stdlib.h>
int main(void)
{
int horasdepijama;
printf("Quantas horas por dia, em media, passa o mora de pijama?\n");
scanf("%d",...
Hi,
i have a program that asks the user for a number and i want it to give an error message when the user enters a letter. Until now it freezes when that happens. I know that's a noob question but...