Write a C program that accepts salary and age from the user and displays the same on the screen as output.?
Answers
Answered by
3
Explanation:
#include <studio.h>
float salary;
int age;
void()
{
printf("enter the Age and salary");
scanf("%d%f",&age,&salary);
printf("salary-%f \n age-%d", salary, age);
}
Answered by
15
#include<stdio.h>
#include<conio.h>
void main()
{
float salary, age;
clrscr();
printf("Enter Salary: ");
scanf("%f", salary);
printf("\n Enter age: ");
scanf("%f", age);
printf("\n Salary: %f", salary);
printf("\n Age: %f", age);
getch();
}
Similar questions