Home
About
Contact
Privacy Policy
Terms and Conditions
Disclaimer
Home
C Programs
_String
_Number
_Pattern
Oops Concept
Evergreen Programs
SOA
Ask Question
Ad Code
Responsive Advertisement
Categories
evergreen programs
(8)
Number
(2)
Oops Concept
(5)
Pattern
(2)
SOA
(4)
String
(9)
Most Popular
Non repeated or unique characters in String(Case Insensitive)
February 22, 2023
Inheritance And Types of Inheritance with Real Time Example
February 21, 2023
Non repeated or unique characters in String(Case Sensitive)
February 20, 2023
Home
evergreen programs
separating string in given number
separating string in given number
LeanerzWing
Separating string in given number
Using C program
C Program:
#include
#include
int main() { char a[100]; int i,l,n; printf("Enter the string:"); gets(a); printf("enter n:"); scanf("%d",&n); l=strlen(a); if(l%n==0) { printf("%c",a[0]); for(i=1;i
Output 1
:
Output 2
:
Output 3:
evergreen programs
Post a Comment
0 Comments
Social Plugin
Search This Blog
Popular Posts
Non repeated or unique characters in String(Case Insensitive)
February 22, 2023
Inheritance And Types of Inheritance with Real Time Example
February 21, 2023
Non repeated or unique characters in String(Case Sensitive)
February 20, 2023
Close Menu
0 Comments