C examples for Language Basics:scanf
Skips over first two integers of input
#include <stdio.h> int main(void) { int n;//from w w w . j a v a 2 s .com printf("Please enter three integers:\n"); scanf("%*d %*d %d", &n); printf("The last integer was %d\n", n); return 0; }