public class suthagar {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String[] names={"suthagar","mani","kalai"};
String[] address={"pondy","vilupuram","pondy"};
String[] possion={"manager","clerk","assicent manager"};
for(int i=0;i<names.length;i++)
{
System.out.println("Name"+(i+1)+"="+names[i]);
System.out.println("Address"+(i+1)+"="+address[i]);
System.out.println("Possion"+(i+1)+"="+possion[i]);
}
}
}
/* INPUT: Mohandas Karamchand Gandhi
* OUTPUT: M. K. Gandhi
*/
import java.io.*;
class ShortName
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter your name: ");
String s=in.readLine();
char ch; short c=0,d=0,e=0;
do
{
ch=s.charAt(d);
if(ch==' ')
c++;
d++;
}while(d<s.length());
String w[]=new String[c+1];
for(d=0;d<=c;d++)
w[d]="";
for(d=0;d<s.length();d++)
{
ch=s.charAt(d);
if(ch==' ')
{
e++;
continue;
}
w[e]+=ch;
}
for(d=0;d<=c;d++)
{
if(d==c)
System.out.print(w[d]);
else
System.out.print(w[d].charAt(0)+". ");
}
}}
System.out.println("Your initials here");
Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.
program could be widescreen
gust click the ALT+ENTER
//C++ program to abbreviate first and middle name#include#include void main(void) { char name[40]; char abname[30]; int i,len,m=1,j=0; //puts is used to print string of characters //although cout is equivalent to it but gets //and cout should not be mixed in one program puts("Enter Name: "); //gets is used to take string input with spaces gets(name); //strlen is a built-in function, declared in //the string.h header file //it returns the length of a string len=strlen(name); abname[j++]=name[0]; abname[j++]='.'; abname[j++]=' '; for (i=0;i
You have one or more errors in your program.
welcome you all for wonder full cultural program by our friends , once again i welcome all for Wonder full program
If the full stop is at the end of the initials then there should be a space before the next word.
Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.
She already has her name to be full with her initials: "C.N." and last name: "Janaki".
Nicks Jonas's full name is Nicholas Jerry Jonas so, his initials are N.J.J (:
From Omnigraph website: Use print preview to print on a full sheet of paper
The nursery rhyme with those initials is "A Pocket Full of Rye."
Dill's full name in "To Kill a Mockingbird" is Charles Baker Harris. His initials would be CBH.
Revolutions per minute. It may be the rate at which a pedal turns a full rotation per minute.
Acronym
She used her initials to avoid the criticism that a woman could not write about male experiences. So without using her full name, no one could immediately tell if the novel was written by a man or a woman.
An employee's initials usually refer to the first letter of each part of their full name. For example, if an employee's name is John David Smith, his initials would be JDS. Initials are often used to identify individuals, especially in official documents or when signing paperwork.