#include <stdio.h> int main() { int number, i; printf("Enter an integer: "); scanf("%d", &number); printf("Multiplication table of %d: n", number);...
Continue reading...Learn2Done
Program in Java to convert lowercase string to uppercase string Copy
#include <stdio.h> int main() { int number, i; printf("Enter an integer: "); scanf("%d", &number); printf("Multiplication table of %d: n", number);...
Continue reading...Program in Java to Reverse a String using recursion
#include <stdio.h> #include <string.h> void reverse_string(char*, int, int); int main() { char char string_array[150]; printf("Enter any string:"); scanf("%s", &string_array); reverse_string(string_array,...
Continue reading...Program in Java to convert uppercase string to lowercase string
#include<stdio.h> #include<string.h> int main(){ char str[25]; int i; printf("Enter the string: "); scanf("%s",str); for(i=0;i<=strlen(str);i++){ if(str[i]>=65&&str[i]<=90) str[i]=str[i]+32; } printf("nLower Case String...
Continue reading...Program in Java to add two numbers
import java.util.*; public class Learner{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("Enter two integers:"); int num1=sc.nextInt(); int...
Continue reading...Program in Java to Write Hello world
import java.util.*; public class Learner{ public static void main(String[] args) { System.out.println("Hello World!!"); } } OUTPUT Hello,World!!
Continue reading...Program in C to add two numbers Copy Copy
#include <stdio.h> void main() { int num1, num2, sum; printf("Enter two integers: "); scanf("%d %d", &num1, &num2); // calculating sum...
Continue reading...Program in C to convert uppercase string to lowercase string
#include<stdio.h> #include<string.h> int main(){ char str[25]; int i; printf("Enter the string: "); scanf("%s",str); for(i=0;i<=strlen(str);i++){ if(str[i]>=65&&str[i]<=90) str[i]=str[i]+32; } printf("nLower Case String...
Continue reading...Program in C to Reverse a String using recursion
#include <stdio.h> #include <string.h> void reverse_string(char*, int, int); int main() { char char string_array[150]; printf("Enter any string:"); scanf("%s", &string_array); reverse_string(string_array,...
Continue reading...Program in C to convert lowercase string to uppercase string
#include <stdio.h> int main() { int number, i; printf("Enter an integer: "); scanf("%d", &number); printf("Multiplication table of %d: n", number);...
Continue reading...