311,778 views
16 votes
16 votes
#include

void main()
{
int m=45,first,last;
first=m/10;
last=m%10;
printf("%d",first);//line 1
printf("\\%d",last);//line 2
printf("\\Sum=%d",first*last);//line 3
printf("\\%d",first*last);//line 4
printf("\\%d",last*last);//line 5
printf("\\Cube=%d",first*first*first);//line 6
}


Select the correct output for line 1 ~
1 point
4
5
0

User Poma
by
2.6k points

1 Answer

12 votes
12 votes

Answer:

4

Step-by-step explanation:

45 divided by 10 using integer division is 4

I ran the program, output is below.

#include void main() { int m=45,first,last; first=m/10; last=m%10; printf("%d-example-1
User Boriss Pavlovs
by
3.3k points