#include<stdio.h>
main()
{
char ch;
printf("\n enter any number:");
scanf("%c",&ch);
if(ch>=65&&ch<=90)
printf("\n upper case aphabet");
else if(ch>=97&&ch<=122)
printf("\n lower case alphabet)
else if(h>=48&&ch<=57)
printf("\n numeric char");
else
printf("\n special char");
}
It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........
Accept 5 numbers in an array and display it.
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
Accept 3 natural numbers and check whether it firms pythagorean triplet
#include<stdio.h> main() { int num1; int num2; int a; printf("Enter any two numbers :"); scanf("%d%d",&num1,&num2); for(a=num1;num1<=num2;a++) { if ( a % 2 == 1); { printf("%d",a); } } getch(); }
It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........
write a c program to accept a number and generate a square root cube and exponential values
If you'll accept a decimal, then it's .0123456789 If you want whole numbers only, and you'll accept a leading zero, then it's 0,123,456,789. If not, then it's 1,023,456,789.
C programm
Accept 5 numbers in an array and display it.
The nations that received them did not fully accept them.
The teacher issued a statement declaring that she would not accept any late work.
it is called an axiom
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
A photorealist would most likely accept the statement that their artwork aims to depict subjects with a high degree of accuracy and attention to detail, closely resembling a photograph.
dim a input a
Accept 3 natural numbers and check whether it firms pythagorean triplet