Search This Blog


Showing posts with label program to take input from user and produce output. Show all posts
Showing posts with label program to take input from user and produce output. Show all posts

Wednesday, 10 April 2019

April 10, 2019

C Program to Ask The User for Empid, Age, Salary and Display the Same || C Programming

Program to Ask The User for Empid, Age, Salary and Display

Hey Coders, Welcome Back.
So this tutorial will help You to Create a program to Take input From users.
And Then Print it Same on the screen.
  
 C program to ask the user details like empid,age,salary and display the same.Program to take input from users and display it.

CODE

#include<stdio.h>

int main()
{
int id,age,salary;

printf("\n ENTER EMPID");
scanf("%d",&id);

printf("\n ENTER AGE");
scanf("%d",&age);


printf("\n ENTER SALARY");
scanf("%d",&salary);

printf("%d",id);
printf("%d",age);
printf("%d",salary);
return 0;
}

OUTPUT



 

Hope you guys learn something watch other blogs too.