+ 3
Please See My Newly Posted Codes. If you Liked, Please Give Upvote!!!
C++ Codes https://code.sololearn.com/ckm3EDvKFJV8/?ref=app https://code.sololearn.com/cEWl2cygM5dF/?ref=app https://code.sololearn.com/ckTLL2rs682P/?ref=app https://code.sololearn.com/cI60isHrvc0v/?ref=app https://code.sololearn.com/WLiCUYlyt7NC/?ref=app
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.
+ 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
+ 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;
}
}
+ 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.";
}
+ 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();
}
}
+ 11
4th and 5th one are good.
+ 8
babak :-)
+ 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
+ 6
agree @rei ☺
+ 4
all are good
keep it up bro ☺☺☺☺
+ 3
Thanks For Giving Confidence@ Scooby 👍👍😉
+ 3
You are Right@ Scooby..!!!
+ 2
Thanks, I will try it@ Babak
+ 2
You Are Right@ Babak. I'll Improve My Codings