Codelybrary
My collection of useful facts and experiences.
Sunday, February 25, 2018
C program to print alternate letters of a word entered from keyboard
#include<stdio.h>
int main()
{
char str[100];
char c='a';
int i=0;
printf("type a word \n");
while(c != '\n')
{
c = getchar();
str[i]=c;
i++;
}
for (int j=0;j<=i;j++)
{
printf("%c ",str[j]);
j++;
}
return 0;
}
Thanks
Happy computing !
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
what happens to the hydrogen gas that is bubbled in SHE
Simple Servlet program to query books details and update a book's availability status by taking book ID as input
//The HTML index page <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change ...
JDBC: Check if the record exists in the database
Assuming you are working with a newly returned ResultSet whose cursor is pointing before the first row, an easier way to check this is to...
Online work sites
Here are some links to online work sites https://www.upwork.com/ https://www.guru.com/ https://studio.envato.com/freelance-switch/ htt...
No comments:
Post a Comment