A] Integer Input:-

Program:-

#include<stdio.h>

#include<conio.h>

int main()

{

    int num;

    printf("Enter the Number: ");

    scanf("%d", &num);

    printf("Result: %d", num);

    getch();

    return 0;

}

➽ Output:-

Enter the Number: 1000
Result: 1000

B] Character Input:-

➽ Program:-

#include<stdio.h>

#include<conio.h>

int main()

{

    char ch;

    printf("Enter the Character: ");

    scanf("%c", &ch);

    printf("Result: %c", ch);

    getch();

    return 0;

}

➽ Output:-

Enter the Character: Z
Result: Z


C] String Input:-

➽ Program:-

#include<stdio.h>

#include<conio.h>

int main()

{

    char str[1000];

    printf("Enter any String: ");

    gets(str);

    printf("Result: %s", str);

    getch();

    return 0;

}

➽ Output:-

Enter any String: Coding Plaza
Result: Coding Plaza