Posts by Filipe Teixeira • 37 points
6 posts
-
-1
votes1
answer977
viewsQ: Id returned 1 Exit status
A number is said to be Capicua when read from left to right is the same as when read from right to left. For example: the number 320023 is Capicua, while the number 1872681 is not. Then construct a…
casked Filipe Teixeira 37 -
0
votes2
answers698
viewsA: Factorial with recursion
Presenting another solution to the problem: #include <stdio.h> #include <stdlib.h> int fat (int n) { int res = 1; while (n > 1) { res = res * n; n--; } return res; } int main () {…
canswered Filipe Teixeira 37 -
0
votes1
answer71
viewsQ: Segmentation Fault (Dumped Core) Print Numbers
I wrote an algorithm that prints all integers in a closed interval from A to B, with A and B integers. However, when I was compiling and assembling the file on the linux bash, there was a…
casked Filipe Teixeira 37 -
0
votes1
answer262
viewsQ: Syntax error C
I read the chapter of matrices in Herbert Schildt’s book, C complete and total, and I decided to transcribe the algorithm designed to simulate a game of old. In spite of everything, Dev-c++ found a…
casked Filipe Teixeira 37 -
-2
votes1
answer121
viewsQ: Error of Parsing
I wrote the code below: import java.lang.Math; import.util.Scanner; public class HelloWorld { public static void main(String[] args) { int y; int cont; int i; Scanner x = new.Scanner(System.in);…
javaasked Filipe Teixeira 37 -
2
votes1
answer312
viewsQ: Nosuchelementexception error when executing application
I wrote a simple code in the online java ide (follows code below): import java.util.Scanner; public class HelloWorld { public static void main(String[] args) { String nome = "Filipe"; final double…
javaasked Filipe Teixeira 37