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
Runtime polymorphism
February 25, 2023
Number Left Half Pyramid Pattern
March 07, 2023
Non repeated or unique characters in String(Case Sensitive)
February 20, 2023
Printing Characters with its count in a string(Case Sensitive)
February 27, 2023
Non repeated or unique characters in String(Case Insensitive)
February 22, 2023
C program to find the First Occurrence of Starting Index(Case Insensitive)
March 06, 2023
Compile Time Polymorphism
February 23, 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
Runtime polymorphism
February 25, 2023
Number Left Half Pyramid Pattern
March 07, 2023
Non repeated or unique characters in String(Case Sensitive)
February 20, 2023
Close Menu
0 Comments