14 Respuestas
+ 15
The logic of your codes are pretty good but they are not clean visually. Try to indent your code for more readability. Updating and improving your codes on a regular basis (whenever you feel it is necessary) would be a good idea. I try to review all of your codes and if I find anything suspicious, inform you here. Good luck my friend.
2nd Oct 2017, 2:57 PM
Babak
Babak - avatar
+ 15
You may post in existing code-related threads instead of creating a new thread, may be even more effective and also keep Q&A clean. https://www.sololearn.com/Discuss/347139/ https://www.sololearn.com/Discuss/452626
2nd Oct 2017, 2:56 PM
Hatsy Rei
Hatsy Rei - avatar
+ 14
For first one, // Enter Any Positive Integer #include <iostream> using namespace std; int main() { int n = 0; cout << "Table Of: "; cin >> n; for (int i = 1; i <= 10; ++i) { cout << n << " * " << i << " = " << n * i << endl; } }
2nd Oct 2017, 3:00 PM
Babak
Babak - avatar
+ 13
2nd one, //Please Enter A Number.. #include <iostream> using namespace std; int main() { int n; cout << "Enter an integer: "; cin >> n; if ( n % 2 == 0) cout << n << " is even."; else cout << n << " is odd."; }
2nd Oct 2017, 3:02 PM
Babak
Babak - avatar
+ 11
3rd one, /* Please Enter Any Number to convert it into alphabet Example-- 123, 12, 82828, Etc.*/ using System;   public class ConvertDigitsToWords { public static void Main() { int num; int nextdigit; int numdigits; int[] n = new int[20];   string[] digits = { "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine" }; num = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Your Number: " + num); Console.Write("Number in Words: "); nextdigit = 0; numdigits = 0; do { nextdigit = num % 10; n[numdigits] = nextdigit; numdigits++; num = num / 10; } while(num > 0); numdigits--; for( ; numdigits >= 0; numdigits--) Console.Write(digits[n[numdigits]] + " "); Console.WriteLine(); Console.ReadLine(); } }
2nd Oct 2017, 3:08 PM
Babak
Babak - avatar
+ 11
4th and 5th one are good.
2nd Oct 2017, 3:10 PM
Babak
Babak - avatar
+ 8
babak :-)
2nd Oct 2017, 3:23 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
yeh..right..the indent @babak @abhay do you create code in computer and then copy it and paste here??thats why the indent problem
2nd Oct 2017, 2:57 PM
Scooby
Scooby - avatar
+ 6
agree @rei ☺
2nd Oct 2017, 2:58 PM
Scooby
Scooby - avatar
+ 4
all are good keep it up bro ☺☺☺☺
2nd Oct 2017, 2:54 PM
Scooby
Scooby - avatar
+ 3
Thanks For Giving Confidence@ Scooby 👍👍😉
2nd Oct 2017, 2:55 PM
Abhay Kumar Singh
Abhay Kumar Singh - avatar
+ 3
You are Right@ Scooby..!!!
2nd Oct 2017, 2:58 PM
Abhay Kumar Singh
Abhay Kumar Singh - avatar
+ 2
Thanks, I will try it@ Babak
2nd Oct 2017, 2:56 PM
Abhay Kumar Singh
Abhay Kumar Singh - avatar
+ 2
You Are Right@ Babak. I'll Improve My Codings
2nd Oct 2017, 3:01 PM
Abhay Kumar Singh
Abhay Kumar Singh - avatar