or
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
Pratik Adhikari asked a question

At dawn and dusk, large amount of blue and violet light(shorter wavelength) has been scattered so, the light that is recieved by an observer is mostly of a longer wavelength and therefore appears to be red.

11 Thanks
2 Answers
Sushil Bhandari asked a question

Recently we're working to degrade accounts with 0 contributions from creator to learner. If you're a learner and very keen to be a creator, you must keep posting interesting questions and contact to admins from the Facebook Group of Mattrab Community. For being an admin, you must be in grade 12, either completed or recently enrolled, your notes, and all your records and contributions will be verified for that

7 Thanks
3 Answers
Atith Adhikari asked a question

It is theoretically possible for a substance to have a negative value of cubical expansivity, which means that the substance would contract rather than expand when the temperature increases. However, it is very rare for a substance to have a negative value of cubical expansivity over a significant range of temperatures.

One example of a substance that has a negative value of cubical expansivity over a limited range of temperatures is water. Water has a positive value of cubical expansivity at...

0 Thanks
2 Answers
Diwas Pandit asked a question

A negative of a vector represents the direction opposite to the reference direction. It means that the magnitude of two vectors are same but they are opposite in direction.

For example, if A and B are two vectors that have equal magnitude but opposite in direction, then vector A is negative of vector B.

5 Thanks
2 Answers

Mattrab Community

Create, share and learn from the unlimited notes, photos and videos and ask your questions, answer your friends all over Nepal and grow. Create, share and learn.

Ask Mattrab is changing soon

We are excited for you to try new features. What are you excited about?

Close Open App