Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Valor fuera del intervalo
//Title of this code //gcc 4.9.1 #include <stdio.h> int main(void) { short INF, SUP, a, i; INF= 5; //printf("Introduzca limite inferior: "); scanf("%hd",&INF); SUP=50; //printf("Introduzca limite superior: "); scanf("%hd", &SUP); a= 60; //printf("Introduzca un valor: "); scanf("%hd", &a); for(i=0; a<INF || a>SUP; i++){ a = 20; // printf("Introduzca otro valor"); scanf("%hd", &a); } printf("El valor esta en el intervalo"); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Assignment 10
Day 2 String Manipulation
PROTOTIPO PREGUNTA 1 DE GUÍA 4
TruncatablePrime
Ahora si?
-Wconversion double -> int
to upper case string
Star1..3
C_141106_Potencia
htabprepa
Please log in to post a comment.