Answer:
Check the explanation
Explanation:
Kindly check the attached image below to see the step by step explanation to the question above.
Let “w” and “L” be the width and length of the rectangle. “p” and “a” are perimeter and area
For python,
w=int(input(“width”))
l=int(input(“length”))
a= w*l
p=2*w+2*l
print(str(a), str(p)
Answer:
All the time and to see if someone is behind you.
Explanation:
After you check your side mirrors you should check your review mirror to see who is behind you.
Answer:
See explaination
Explanation:
#include<stdio.h>
#include<conio.h>
int main()
{
int days,start,i;
printf("Enter number of days in month: ");
scanf("%d",&days);
printf("Enter starting day of the week (1=Sun, 7=Sat):");
scanf("%d",&start);
printf("\nSun Mon Tue Wed Thu Fri Sat\n");
for(i=0;i<start-1;i++)
printf(" ");
for(i=1;i<=days;i++)
{ if (i<=9)
printf(" ");
printf("%d",i);
if ((start-1+i)%7==0&&i!=days)
printf("\n");
else
printf(" ");
}
printf("\n");
getch();
}