Program to find the unknown value by using two known values without using any athematic operators ?
#include <stdio.h>
int main() {
int a=50,c=40;
int b=0; //finding value of b
while(a != c){
a--;
b++;
}
printf("value of b=%d\n",b);
}
output:-
value of b=10
0 కామెంట్లు