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

  • برمجة
  • برمجة سي c

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

الأجوبة

#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 );
}
}
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...