Posts by H.Savvy • 1 point
2 posts
-
0
votes2
answers96
viewsA: What is the mistake in logic?
Well, there’s my answer, the result is as expected #include <stdio.h> int main(){ float x = 0.0; int n = 0; float soma = 0; int fat = 1; printf("Digite um valor:"); scanf("%f", &x);…
-
-4
votes2
answers96
viewsQ: What is the mistake in logic?
Given the values of x real and n natural positive, calculate: #include <stdio.h> int main(){ float x = 0.0; int n = 0; int soma = 0; int fat = 1; printf("Digite um valor:"); scanf("%f",…