Ticker

6/recent/ticker-posts

Program to find the unknown value by using two known values without using any athematic operators ?

 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 కామెంట్‌లు