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
Palindrome number using C program
March 11, 2023
WS-Security in SOA
March 10, 2023
Removing Duplicate Characters using C program(Case Sensitive)
February 28, 2023
pangram string program in c
March 22, 2023
Features Of OOPs with REAL TIME EXAMPLES
February 19, 2023
First Occurrence of Starting Index(Case sensitive)
March 02, 2023
Printing Characters with its count in a string(Case Insensitive)
March 01, 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
Palindrome number using C program
March 11, 2023
WS-Security in SOA
March 10, 2023
Removing Duplicate Characters using C program(Case Sensitive)
February 28, 2023
Close Menu
0 Comments