scanf跳过前两个输入整数

#include stdio.hint main(void){int n;printf(Please enter three integers:\\n);scanf(%*d %*d %d, n);

编程学习网为您整理以下代码实例,主要实现:scanf跳过前两个输入整数,希望可以帮到各位朋友。

#include <stdio.h>
int main(voID)
{
    int n;

    printf("Please enter three integers:\n");
    scanf("%*d %*d %d", &n);
    printf("The last integer was %d\n", n);

    return 0;
}

本文标题为:scanf跳过前两个输入整数