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:-
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:-
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:-
0 Comments
Please do not enter any spam link in the comment section.