Posts by Felipe Silva • 1 point
1 post
-
-2
votes2
answers54
viewsA: How do I if the user type a number other than 1 and 2 he asks you to terminate the program? n[1] for yes and [2] for no?
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { int var1, var2, Q, R, decisao =…
canswered Felipe Silva 1