Pages

How to divide two numbers in C

1. How to divide two numbers in C

#include<stdio.h>

void main()
{
          int a,b,c;
          a=12;
          b=6;
          c=a/b;
          printf("a/b :%d",c);
}

Output :
2

No comments:

Post a Comment