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
C program to find the First Occurrence of Starting Index(Case Insensitive)
March 06, 2023
Roman Numerals to Integer using C
February 24, 2023
Number Left Half Pyramid Pattern
March 07, 2023
WS-Addressing in SOA
March 08, 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
C program to find the First Occurrence of Starting Index(Case Insensitive)
March 06, 2023
Roman Numerals to Integer using C
February 24, 2023
Number Left Half Pyramid Pattern
March 07, 2023
Close Menu
0 Comments