Computer Science, asked by shahoafridi55, 6 months ago

Write a C program that accepts salary and age from the user and displays the same on the screen as output.?

Answers

Answered by tejaskambale2
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 AbdulHafeezAhmed
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