C
Programming and Technical
Programming
Program
write a c program:
input: 1234ABCD
output: 1A2B3C4D.
you can only use one string. more than one string is not allowed.entire operation should be done in that string only
Read Solution (Total 6)
-
- main()
{
int i,j,n;
char str[10];
clrscr();
printf("Enter a string containing equal number of digits and charactersn");
scanf("%s",str);
n=strlen(str);
j=n/2;
for(i=0;i - 11 years agoHelpfull: Yes(4) No(2)
- i dont know why that the admin is not going to display the actual logic i had tried. K, let me try once again..
for i->0; i - 11 years agoHelpfull: Yes(1) No(2)
- scanf("%s",str);
n=strlen(str);
j=n/2;
for(i=0;i - 11 years agoHelpfull: Yes(0) No(1)
- for(i=0;i
- 11 years agoHelpfull: Yes(0) No(2)
#include
void main()
{
int d,i,k,j;
char a[]="1234ABCD";
d=sizeof(a);
printf("%dn",d);
k=d/2;
printf("%dn",i);
for(i=0,j=k;(i- 11 years agoHelpfull: Yes(0) No(3)
- int main()
{
char str[10000];
char str1[10000];
int arr[10000];
scanf("%s",str);
int i,j=0,k,a,m=0;
k=strlen(str);
for(i=0;i=0&&a - 10 years agoHelpfull: Yes(0) No(0)
C Other Question