CTS
Company
Numerical Ability
Time Distance and Speed
Write a short code using C++ to print out all odd number from 1 to 100 using a for loop
Read Solution (Total 19)
-
- wtf? they r not displaying full solutions!!
I have written full prog. bt its nt displaying here! huh! - 11 years agoHelpfull: Yes(4) No(3)
- soln in C
#include
main(){
int i=1;
for(;i - 11 years agoHelpfull: Yes(1) No(2)
- #inclue main(){ int i; for(i=1;i
- 11 years agoHelpfull: Yes(1) No(4)
- if(i%2!=0);
- 11 years agoHelpfull: Yes(1) No(1)
- #include
void main()
{
for(i=1;1 - 11 years agoHelpfull: Yes(0) No(1)
- #include
void main()
{
for(int i=1;i - 11 years agoHelpfull: Yes(0) No(1)
- #include
void main()
{ int i;
for(i=1;i - 11 years agoHelpfull: Yes(0) No(2)
- #include
void main()
{
for(int i=1;i - 11 years agoHelpfull: Yes(0) No(3)
- #include
#include
void main()
{
int i,n;
clrscr();
for(i=0;i - 11 years agoHelpfull: Yes(0) No(2)
- for(i=1;i
- 11 years agoHelpfull: Yes(0) No(1)
- #include
void main()
{
for(i=1;i - 11 years agoHelpfull: Yes(0) No(1)
- for(i=1;i
- 11 years agoHelpfull: Yes(0) No(1)
- for(i=1;i
- 11 years agoHelpfull: Yes(0) No(1)
- for(i=1;i
- 11 years agoHelpfull: Yes(0) No(1)
- int i;
for(i=1; i>i;
- 10 years agoHelpfull: Yes(0) No(0)
- for(i=1;i
- 10 years agoHelpfull: Yes(0) No(0)
- for(int i=1;i
- 10 years agoHelpfull: Yes(0) No(0)
- int main() {
int i;
for(i=1; i - 10 years agoHelpfull: Yes(0) No(0)
- for(int i=1;i
- 10 years agoHelpfull: Yes(0) No(1)
CTS Other Question