Computer Science, asked by asminaparbin843, 2 months ago

What is "%" Operator inc
Operator in c language? what
will be the result for 15% 15 in c
longuay
programing language​

Answers

Answered by anshupandey1249
0

Explanation:

int main()

{

float a ;

int b ;

a = 2.0 ;

b = 9 ;

printf ( "Value of b/a is : %f\n" , b/a ) ;

return 0;

}

Answered by MrTSR
1

Question:-

What is "%" Operator in C Language?

What  will be the result for 15 % 15 in C  programming language​.

Answer:

% is a Arithmetic Operator in C Language.

%  returns the remainder after the division.

Result of 15 % 15 is 0.

Lets implement 15 % 15 in the program.

#include<stdio.h>

int main(){

   int a= 15, b= 15;

   printf("The value of a % b is %d \n", a % b);

   return 0;

}

OUTPUT

The value of a % b is 0.

Note: Program has been run in the above attachment with output attached.

Attachments:
Similar questions