#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
int main(void){
// bool isAnumber;
_Bool isANumber;
int number;
int sumOfNumbers = 0;
printf("Enter a Number: ");
isANumber = (scanf("%d", &number) == 1);
while(isANumber) {
sumO Numbers = sumOfNumbers + number;
printf("Enter a Number: ");
isANumber = (scanf("%d", &number) == 1);
}
printf("The Sum is %d\n\n", sumOfNumbers);
}
댓글 없음:
댓글 쓰기