in C with eclipse i: 3 Name : Homework 2 4 Author 5 Version 6 Copyright : Your c
ID: 3742798 • Letter: I
Question
in C with eclipse
i: 3 Name : Homework 2 4 Author 5 Version 6 Copyright : Your copyright notice 7 DescriptionConvert Age in years to days. 8 sEEEsEEEEEEEEEsEEEsEEEEssEEEEssEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 10 //including Header files 011 #include 12 //main starts 13 int main(void) 14 15 //variable decleration 16 int age,age_days; 17 //taking input printf("Howdy. Please scanf("%d",&age); name:"); 818 619 enter your 20 //calculating the result 21 age davs-(age*365): 22 //printing the result 23 printf("Your age in days : %d",age-days); 24 return e 25 //main ends Problems × € Tasks Console 1 error, 4 warnings, 2 others Description Properties Path Location Type Resource Errors (1 item) #include expects "FILENAME" or d) Warnings (4 items) Homework 2.c /Homework 2/src line 11 C/C+ Problem implicit declaration of function 'printf -Wimplicit-func Homework 2.c /Homework 2/sro implicit declaration of function 'scanf -Wimplicit-func Homework 2.c /Homework 2/sro incompatible implicit declaration of built-in function 'p Homework 2.c /Homework 2/src incompatible implicit declaration of built-in function 's Homework 2.c /Homework 2/src line 18 line 19 line 18 line 19 C/C++Problem C/C++ Problem C/C++ Problem C/C+ProblemExplanation / Answer
//including Header files
#include<stdio.h>
//main starts
int main(void)
{
//variable declaration
int age,age_days;
//taking input
printf("Howdy. Please enter your name:");
scanf("%d",&age);
//calculating the result
age_days=(age*365);
//printing the result
printf("Your age in days:%d",age_days);
return 0;
}//main ends
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.