Computer Science, asked by amishafilomeena1003, 9 months ago

please answer this question if you know the answer then only answer else reported
answer all of them this is of computer science show the workings on IDLE.

Accept a number. Divide it by 5 and find
the remainder and quotient.



Q4) Print the following using \n

We have sports period on Wednesday.

I love to play Basketball. I go to the Sports
field to play.​

Answers

Answered by Needthat
1

Explanation:

3.

#include<stdio.h>

void main(){

int divident, quotient, remainder;

printf("Enter a no.\n");

scanf("%d",&divident);

quotient=divident/5;

remainder=divident%5;

printf("%d is q, %d is r",quotient,remainder);

}

In py

def f(x):

y=x//5

z=x%5

print("quotient is" y \n "remainder is"z)

4.

#include<stdio.h>

void main(){

printf("We have sports period on Wednesday.\nI love to play Basketball. \nI go to the Sports

field to play.\n");

}

In py

printf("We have sports period on Wednesday."\n"I love to play Basketball." \n"I go to the Sports

field to play."\n)

Hope it helps

Similar questions