Posts by Diego Damasceno • 36 points
2 posts
-
0
votes2
answers179
viewsA: Validating form in Javascript
Replace your regular expression /^[A-Za-z]+$/ by the expression /[0-9]/ What you want is, if the user enters some number, display an error message stating that in that field can only be entered…
javascriptanswered Diego Damasceno 36 -
2
votes2
answers101
viewsA: How to handle printf in C language
int main() { int x=5; int y=3; printf("Digite um valor para a posição [%d, %d]", x, y); return 0; } As it turned out: Enter a value for the position [5, 3]…