Simple C programe

#include<stdio.h>
       int main()
       {
        int i=2,j=3,k,l;
        float a,b;
        k=i/j*j;
        l=j/i*i;
        a=i/j*j;
        b=j/i*i; 
        printf("\n%d\n%d\n%f\n%f",k,l,a,b);   
        }

out put
k=0
l=2
a=0.000
b=2.000

No comments:

Post a Comment

How to change the fond size in dev C++

Procedure... Go to tools And then click on Editor options... Present in drop down list of tools then you will see the menu And then c...