Skip to content

Commit 9d74868

Browse files
author
John victor
committed
Adicionando a resolução da questão 1062 - Acidez de uma solução
1 parent 808e109 commit 9d74868

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed
8.55 KB
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
4+
5+
void result(int pH){
6+
7+
if(pH == 7){
8+
printf("Neutra\n");
9+
} else if(pH > 7) {
10+
printf("Basica\n");
11+
} else {
12+
printf("Acida\n");
13+
}
14+
15+
}
16+
17+
int main(){
18+
19+
int pH;
20+
scanf("%d", &pH);
21+
22+
result(pH);
23+
24+
return 0;
25+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.66
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Acida

0 commit comments

Comments
 (0)