Channel address:
Categories:
Technologies
Language: English
Subscribers:
141.08K
Description from channel
Codingsolution_it
#coding
#codingsolution
#codingsolutionhelp
#codingsolutionit
#coding_solution_help
#codingsolutionhelpit
Codingsolution
#Coding_solution
#Coding_solution_it
#Coding solution help
Codingsolutionhelp
#Coding solution it
#codingsol
coding
Ratings & Reviews
Reviews can be left only by registered users. All reviews are moderated by admins.
5 stars
0
4 stars
2
3 stars
0
2 stars
1
1 stars
0
The latest Messages 7
2021-10-20 17:16:52
#include
#include
void main()
{
char s[200];
int count = 0, i;
printf("Enter the string:\n");
scanf("%[^\n]s", s);
for (i = 0;s[i] != '\0';i++)
{
if (s[i] == ' ' && s[i+1] != ' ')
count++;
}
printf("Number of words in given string are: %d\n", count + 1);
}
Telegram - t.me/coding_solution_help
11.6K views14:16
2021-10-20 17:13:30
CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include
#include
#include
#include
#include
2021-10-20 17:12:06
#include
using namespace std;
int maxnumber(int n, int k)
{
for (int j = 0; j < k; j++)
{
int ans = 0;
int i = 1;
while (n / i > 0)
{
int temp = (n / (i * 10)) * i + (n % i);
i *= 10;
ans = max(ans, temp);
}
n = ans;
}
return n;
}
int main()
{
int n ;
cin>>n;
int k = 1;
cout << maxnumber(n, k) << endl;
return 0;
}
Telegram - t.me/coding_solution_help
7.6K views14:12
2021-10-20 16:55:53
KPIT EXAM TODAY DISCUSSION GROUP
@kpit_exam_wipro_colortokens_exam
7.0K views13:55
2021-10-20 16:51:01
#include
int main() {
int n;
scanf("%d",&n);
int addition(int a)
{
int sum=0;
if(a<=9 && a>=1)
{
printf("%d",a);
}
else
{
while(a!=0)
{
int rem = a%10;
sum+=rem;
a=a/10;
}
return addition(sum);
}
}
addition(n);
return 0;
}
C language
Telegram - t.me/coding_solution_help
7.8K views13:51
2021-10-20 16:47:11
#include
#define MAX_SIZE 100 // Maximum string size int main() { char str[MAX_SIZE]; int i, words; /* Input string from user */ printf("Enter any string: "); gets(str); i = 0; words = 1; /* Runs a loop till end of string */ while(str[i] != '\0') { /* If the current character(str[i]) is white space */ if(str[i]==' ' || str[i]=='\n' || str[i]=='\t') { words++; } i++; } printf("Total number of words = %d", words); return 0; }
C language
KPIT
Telegram - t.me/coding_solution_help
7.5K views13:47
2021-10-20 16:38:53
#include
#include
void main()
{
int num1, num2, i, j, flag, temp, count = 0;
printf("Enter the value of num1 and num2 \n");
scanf("%d %d", &num1, &num2);
if (num2 < 2)
{
printf("There are no primes upto %d\n", num2);
exit(0);
}
printf("Prime numbers are \n");
temp = num1;
if ( num1 % 2 == 0)
{
num1++;
}
for (i = num1; i <= num2; i = i + 2)
{
flag = 0;
for (j = 2; j <= i / 2; j++)
{
if ((i % j) == 0)
{
flag = 1;
break;
}
}
if (flag == 0)
{
printf("%d\n", i);
count++;
}
}
printf("Number of primes between %d & %d = %d\n", temp, num2, count);
}
KPIT
Telegram - t.me/coding_solution_help
8.1K views13:38
2021-10-20 16:35:24
Python
KPIT
Telegram - t.me/coding_solution_help
7.8K views13:35
2021-10-20 16:33:40
Python
KPIT
Telegram - t.me/coding_solution_help
8.1K views13:33
2021-10-20 16:24:26
C++ language
KPIT
Telegram - t.me/coding_solution_help
9.4K views13:24