Study of console i/o - 2.

#include <stdio.h>

int main(void)
{
int num;
char ch;

printf("Enter a number and character : ");
scanf("%d%c", &num, &ch);
// scanf("%d%*c%c", &num, &ch);

printf("\n%d %c", num, ch);

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin