Skip to main content

Write a program to print hello world in java


 

Comments

Popular posts from this blog

Write a program to find sum of digit using for loop in c.

 

Write a program to find the reverse of a number using function in C.

 

Write a program to insert n element in the array and search for the element s in that array . If element found, replace that element with 100

#include <stdio.h> int main () {     int a[ 5 ];     int i,ins,ser,pos,r;     for (i = 0 ;i < 5 ;i ++ )     {         printf ( "Enter %d element:" ,i + 1 );         scanf ( " %d " , & a[i]);     }     printf ( " \n Enter an element to insert:" );     scanf ( " %d " , & ins);     printf ( " \n Enter the position where you want to insert the element:" );     scanf ( " %d " , & pos);     for (i = 5 ;i >= pos;i -- )     a[i] = a[i - 1 ];     a[pos - 1 ] = ins;     for (i = 0 ;i <= 5 ;i ++ )     {         printf ( " %d\t " ,a[i]);     }     int count = 0 ;     printf ( " \n Enter element to search:" );     scanf ( " %d " , & ser);     for (i = 0 ;i <= 5 ;i ++ )     {         if ...