Computer Science, asked by kavyaeswaran, 1 month ago

write a program takes string and an age as input and return the total number of people in that age and above​

Answers

Answered by anita9570391301
0

Answer:

Matter is anything that has mass and take up space please mark my answer as brainlist

Answered by vanshika946
0

Answer:

#include <stdio.h>

main ()

{

int a,b,c;

printf("\nType the ages of a,b,c:");

//correct format of scanf

scanf("%d %d %d",&a,&b,&c);

if ((a>b) && (a>c))

{

printf("\nThe biggest age is A");

}

else

{

printf("\nThe lesser age is A");

}

//(b>a) && (b>c)

if ((b>a) && (b>c))

{

printf("\nThe biggest age is B");

}

else

{

printf("\nThe lesser age is B");

}

if ((c>a) && (c>a))

{

printf("\nThe biggest age is C");

}

else

{

printf("\nThe lesser age is C");

}

return 0;

}

Similar questions