#include<stdio.h>
#include<string.h>
int main()
{
char a[80];
int rotated_element_number[80];
int rotation;
int i;
int length;
printf("enter the word: \n");
gets(a);
length = strlen(a);
printf("the reversed string is:\n");
for( rotation=0; rotation<length; rotation++)
{
for( i=0; i<length; i++)
{
rotated_element_number[i] = i + rotation;
while(rotated_element_number[i] > (length-1)) rotated_element_number[i] -= length;
printf("%c", a[rotated_element_number[i]]);
}
printf("\t");
}
getchar();
return 0;
}
To print lucky numbers in java, you must give the following program: class example { static public void main(String[] args) { System.out.println("Lucky number is your favourite number which is your DOB"); } }
the example of array over charcter variables is char ["string"]
import java.util.*; public class Example { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please enter a string:"); String input = in.next(); System.out.println("The String you entered is: " + input); } }
class firstprog { public static void main (String args[]) { System.out.pritnln("My first Program in Java "); } } Simple Java Programe Write the above program in Ms dos's edit or Notepad of Windows save it with "firstprog.java" run the commands given below in command prompt of Ms Dos to get the output Remamber Java is case sensative so mentain capital and small letter. 1. javac firstprog.java 2. java firstprog
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
give me the program which can related on domain and referential integrity.
hello ...can u give me answer how to write program inheretance ... and types of inheretance ..... hello ...can u give me answer how to write program inheretance ... and types of inheretance .....
To print lucky numbers in java, you must give the following program: class example { static public void main(String[] args) { System.out.println("Lucky number is your favourite number which is your DOB"); } }
the example of array over charcter variables is char ["string"]
Please re-write so adults can understand
how to compare two strings that take input from the user and compare it. For example: i give first string as "THE" and give second string as "HTE" then return "match" if i give first as"THE" nd second string as "EHI" then return "NOtMatch" witout using STRCMP ... please help me
give an example of calculation of mathematics
if u give control ratios used in budgeting i can write program in C/C++
nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.
Write a program to convert a 2-digit BCD number into hexadecimal
crop rotations give the soil a break from having to support the same crop which drains the soil of the nutrients. Eventually the slil is deprived of the nutrient and the plant will no longer grow there.
import java.util.*; public class Example { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please enter a string:"); String input = in.next(); System.out.println("The String you entered is: " + input); } }