Q:

If the ages of Ram and Shyam are input through the keyboard - Write C program to expect the ages of Ram and Shyam after 17 years

0

If the ages of Ram and Shyam are input through the keyboard.

Write a program to expect the ages of Ram and Shyam after 17 years

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <math.h>
main()
{

int ram, shyam, ramafter,shyamafter;
printf("enter age of ram and shyam  \n");
scanf("%f %f %f", &ram ,&shyam);
ramafter=ram+17 ;
shyamafter=shyam+17;
printf("\n\n the age of ram after17 years is",ramafter );
printf("\n\n the age of shyam after17 years is",shyamafter );
}
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now