write a program to print first 10 even numbers in reverse order
Answers
Answered by
5
Answer:
Write a program in C to display the number in reverse order.
Pictorial Presentation:
Sample Solution:
C Code: #include <stdio.h> void main(){ int num,r,sum=0,t; printf("Input a number: "); scanf("%d",&num); for(t=num;num!=0;num=num/10){ r=num % 10; sum=sum*10+r; } printf("The number in reverse order is : %d \n",sum); }
Answered by
5
class pro
{
public static void main ()
{
System.out.println(“ 19 17 15 13 11 9 7 5 3 1”);
}
}
Actually just need one brainliest to reach virtuoso so please mark me as the brainliest
Happy Learning
:D :D :D :D :D
{
public static void main ()
{
System.out.println(“ 19 17 15 13 11 9 7 5 3 1”);
}
}
Actually just need one brainliest to reach virtuoso so please mark me as the brainliest
Happy Learning
:D :D :D :D :D
Similar questions