multiple of 2
i mean multiple of 2 (2,4,6)
User Profile
Collapse
-
find even or odd in array
#include<stdio. h>
main() {
int a;
printf("Enter a: \n");
scanf("%d", &a);
if (a % 2 == 0) {
printf("The given number is EVEN");
} else {
printf("The given number is ODD");
}
}
the above program find the even or odd but how can... -
converting
I have 100 array elements with floating points then how can i convert floating point to the nearest integer,If the fractional part of the number is greater than .75, -
Inserting data into array of strings after 30 characters
I have an array of 100 elements. Each element contains some text. I want to
add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters -
we have an array of 100 elements. Each element contains some text. We want to:
append a star character to the end of every fifth elementLeave a comment:
-
problem in coding
we have an array of 100 elements. Each element contains some text. We want to:
append a star character to the end of every fifth element
remove every second character from every tenth element, and…
add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters. -
No activity results to display
Show More
Leave a comment: