Answer Posted / dudelzy
#include <iostream>
using namespace std;
int main()
{
int num, x;
cout << "No. of odd numbers u want to find ";
cin >> num;
cout << "" << endl;
for(x = num; x <= num; x--){
if(x % 2 == 1){
cout << x << endl;
}
}
return 0;
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What are manipulators in c++ with example?
What is ios :: in in c++?
what is Member Functions in Classes?
What is enum class in c++?
What are structures and unions?
What's c++ used for?
What is the use of namespace std in C++?
What is this weird colon-member (" : ") syntax in the constructor?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Is dev c++ free?
Which compiler does turbo c++ use?
Write my own zero-argument manipulator that should work same as hex?