Write a C program that accepts salary and age from the user and displays the same on the screen as output.
Answers
Answered by
4
Answer:
#include<stdio.h>
#include<conio.h>
int main()
{
int age;
float sal;
printf("enter the age and sal of person\n");
scanf("%d%f",&age,&sal);
printf("age \t sal\n");
printf("%d \t %f",age,sal);
getch();
}
Explanation:
If you need more them one data you need to use array and write the print function in the loop.
Program Output is attached look at that
HOPE IT HELPS YOU
DO FOLLOW FOR MORE PROGRAMS
MARK AS BRAINLIEST
Attachments:
Answered by
0
Answer:
50000300330393837373747472
Similar questions