/* This program is an example of integer input */ #include <stdio.h> void main() { int valin; printf("Input a number from -32768 to 32767, stop with 100.\n"); do { scanf("%d",&valin); /* read a single integer value in */ printf("The value is %d\n",valin); } while (valin != 100); printf("End of program\n"); }INTIN.C |
Κατεβάστε το πρόγραμμα στον υπολογιστή σας |