Nikas Ghimire asked a question


Program to input any number and display number of odd numbers in it;



#include<stdio.h>

#include<stdlib.h>

#include<conio.h>

#include<string.h>


int main() {

int i, number, num1, num2=0, num3, num4 =0, rem, rem1, rem2, rev = 0;

printf("Enter your number ==> ");

scanf("%d", &number);

num1 = number;

while(num1 != 0) {

rem = num1%10;

rem1 = rem%2;

if (rem1 != 0) {

num2 = num2*10 + rem;

}

num1 /= 10;

}

num3 = num2;

while (num2 != 0) {

...

0 Thanks
2 Answers
NANDANI KUMARI asked a question

Bohr's theory of the atom was proposed in the early 20th century and was based on the idea that electrons move in fixed orbits around the nucleus. According to this theory, the position and momentum of an electron in an atom can be determined with absolute precision at any given moment, which seems to contradict Heisenberg's uncertainty principle.

Heisenberg's uncertainty principle states that it is impossible to determine the exact position and momentum of a particle simultaneously. This...

0 Thanks
2 Answers
Diwas Pandit asked a question

Yes, if the angle between the two vectors is more than 90o but less than 2700. (cosΘ is negative)

5 Thanks
2 Answers
Mousham khatiwada about 1 year ago
5 Claps
1 Comments
Rabin Kalikote

Happy Mother's Day, sir.

Bhawana Yadav asked a question

तपाईंको जीवनमा सामाजिक अधययनले के कसता सकारातमक परभाव परेका छन , बुँदागत रुपमा  लेखनुहोस I


सामाजिक अधययनले मेरो जीवनका पारेका सकारातमक अधययन निमनाअनुसार बुँदागत  रुपमा परसतुत गरेको छु :


1. मैले संविधान वयवसथा गरेको हक, अधिकार, करतवय, दायितव आदि बारे बुझन पाएको छु I

2. मैले करतवयपरायणताको भाव बोध गरेको छु I

3. समाजका रीतिरिवाज, संसकार, परमपरा आदिको अधययनबाट फरक परिवेशमा समेत समावेशन हुन सकने    सिपको विकास गरेको छु I 


4. राषटरिय समपदाको संरकषण र देशको पृषठभूमिपरति पुरखाले...

1 Thanks
3 Answers

You are not authorized to access this page.

Close Open App